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.

Xcode 4 hangs at "Attaching to (app name)"

I just upgraded to Xcode 4 and for some reason my app won't run in the simulator or iOS device. It …

iphone objective-c xcode ipad xcode4
NSDate - Convert Date to GMT

I need the ability to convert an NSDate value to a GMT Date. How can I go about converting an …

ios objective-c swift nsdate gmt
How can I create a activity indicator in middle of view programmatically?

I am working with an app which parses an feed online. When I click the refresh button, it takes some …

ios objective-c cocoa-touch uiactivityindicatorview
What does the -all_load linker flag do?

I can't find anywhere what the -all_load flag do when compiling Objective-C code. I have some issues uploading binaries …

iphone objective-c gcc linker
When should I use @synthesize explicitly?

As far as I know, since XCode 4.4 the @synthesize will auto-generate the property accessors. But just now I have read …

objective-c properties synthesize
Creating a reusable UIView with xib (and loading from storyboard)

OK, there are dozens of posts on StackOverflow about this, but none are particularly clear on the solution. I'd like …

ios objective-c uiview storyboard nib
Best architectural approaches for building iOS networking applications (REST clients)

I'm an iOS developer with some experience and this question is really interesting to me. I saw a lot of …

ios objective-c web-services networking ios7
Serialize and Deserialize Objective-C objects into JSON

I need to serialize and deserialize objective-c objects into JSON to store in CouchDB. Do people have any example code …

objective-c json couchdb nsarray nsdictionary
How to sort NSMutableArray using sortedArrayUsingDescriptors?

I have a question about sorting NSMutableArray. I can use sortedArrayUsingDescriptors: method to sort an array with objects. For example …

objective-c cocoa sorting nsmutablearray
How can I break out of two nested for loops in Objective-C?

I have two for loops nested like this: for(...) { for(...) { } } I know that there is a break statement. But I …

c objective-c loops