Top "Objective-c" questions

This tag should be used only on questions that are about Objective-C features or depend on code in the language.

UITextField for Phone Number

I was wondering how I can format the textField that I'm using for a phone number (ie like the "Add …

iphone objective-c cocoa-touch iphone-sdk-3.0
AppDelegate, rootViewController and presentViewController

I'm doing the Facebook integration tutorial, I want to show my MainViewViewController if the user has a valid token for …

objective-c xcode facebook ios6 appdelegate
How can I generate UML diagrams from Xcode4

I watched a video with xcode 3, that shows a button "Design" that displays a UML diagram, but I can't find …

objective-c ios4 xcode4 uml xcode3to4
Difference between protocol and delegates?

What is the difference between a protocol and a delegate? and, How can we declare variables in a protocol class?

ios objective-c delegates protocols
UICollectionViewFlowLayout Size Warning When Rotating Device to Landscape

We are using a UICollectionView to display cell that cover the full screen (minus the status and nav bar). The …

ios objective-c uicollectionview uicollectionviewlayout
Set UIView's autoresizing mask programmatically?

I have to set autoresizingMask programmatically for UIView. I don't know how to implement this.

iphone objective-c ios uiview autoresizingmask
Customizing the colors of a UISegmentedControl

Does anybody know of a way to customize the appearance of the string based UISegmentedControl? I am trying to set …

ios objective-c uisegmentedcontrol
OpenCV C++/Obj-C: Advanced square detection

A while ago I asked a question about square detection and karlphillip came up with a decent result. Now I …

c++ objective-c opencv image-processing object-detection
NSPredicate Exact Match with String

I have a NSPredicate like this: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"entity.name CONTAINS %@", myString]; But that will return anything which …

objective-c ios core-data nsstring nspredicate
Objective-C set default value for a property

I'm making an app, and I have a class with quite a lot properties and I was wondering if it …

objective-c properties default-value