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.

How to add a right bar button to a navigation bar in iphone

I want to add a right bar button item to the navigation bar, so that on click, it performs certain …

ios objective-c iphone navigationbar
How to increment a NSNumber

How do I increment a NSNumber? i.e. myNSNumber++

objective-c
Vertically align text within a UILabel (Note : Using AutoLayout)

I am Copying the same Question asked Before Question. I have tried the solutions given and was not able to …

ios objective-c cocoa-touch autolayout uilabel
How to find the cause of a malloc "double free" error?

I'm programming an application in Objective-C and I'm getting this error: MyApp(2121,0xb0185000) malloc: *** error for object 0x1068310: …

iphone objective-c memory-management malloc autorelease
What's the difference between synchronous and asynchronous calls in Objective-C, versus multi-threading?

For the longest time I thought asynchronous was synonymous to running something on a background thread, while synchronous meant on …

ios objective-c multithreading asynchronous grand-central-dispatch
When converting a project to use ARC what does "switch case is in protected scope" mean?

When converting a project to use ARC what does "switch case is in protected scope" mean? I am converting a …

objective-c xcode automatic-ref-counting
Assertion failure in -[UITableView _endCellAnimationsWithContext:]

Hopefully this will be a quick fix. I have been trying to figure out the error that i keep getting. …

objective-c ios uitableview crash
Arm64 architecture in xcode 5.1

In the new XCode 5.1, arm64 has become among the standard architectures to build for. However, in current projects of mine …

ios objective-c xcode xcode5.1
Navigation bar appear over the views with new iOS7 SDK

CGRect cgRect1 = [[UIScreen mainScreen] applicationFrame]; UISearchBar *mySearchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, cgRect.size.width, 40)]; mySearchBar.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight ; UITableView *myTableView = [[…

iphone ios objective-c ipad ios7
UIButton inside a view that has a UITapGestureRecognizer

I have view with a UITapGestureRecognizer. So when I tap on the view another view appears above this view. This …

ios objective-c iphone cocoa-touch uitapgesturerecognizer