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.

Get the current first responder without using a private API

I submitted my app a little over a week ago and got the dreaded rejection email today. It tells me …

objective-c cocoa-touch first-responder
UIView Infinite 360 degree rotation animation?

I'm trying to rotate a UIImageView 360 degrees, and have looked at several tutorials online. I could get none of them …

ios objective-c animation uiview core-animation
File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?

I upgraded Xcode version and when using external static libraries, I get this message: ld: file is universal (3 slices) but …

ios objective-c xcode ios6 static-libraries
Attempt to set a non-property-list object as an NSUserDefaults

I thought I knew what was causing this error, but I can't seem to figure out what I did wrong. …

ios objective-c encoding nsuserdefaults
How to convert An NSInteger to an int?

For example when passing a value message to an NSInteger instance like so [a value] it causes an EXC_BAD_…

objective-c cocoa nsinteger
library not found for -lPods

I got an error when archiving a project. This is my environment. Mac OS Lion Xcode 4.3.1 iOS SDK 5.1 The project …

iphone objective-c ios xcode4.3 cocoapods
Objective-C declared @property attributes (nonatomic, copy, strong, weak)

Can someone explain to me in detail when I must use each attribute: nonatomic, copy, strong, weak, and so on, …

objective-c automatic-ref-counting declared-property
iOS: Modal ViewController with transparent background

I'm trying to present a view controller modally, with a transparent background. My goal is to let both the presenting …

ios objective-c modalviewcontroller presentmodalviewcontroller
Having a UITextField in a UITableViewCell

I'm trying to do that for a couple of days now, and after reading tons of messages of people trying …

ios objective-c uitableview cocoa-touch uitextfield
Convert NSNumber to int in Objective-C

I use [NSNumber numberWithInt:42] or @(42) to convert an int to NSNumber before adding it to an NSDictionary: int intValue = 42; NSNumber *…

objective-c nsnumber