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.

Class extension vs class category

Class extensions @interface Class () are a lot more powerful and can inject variables into the class. Categories @interface Class (Category) …

objective-c objective-c-category class-extensions
Replacing one character in a string in Objective-C

Hoping somebody can help me out - I would like to replace a certain character in a string and am …

objective-c ios string nsstring
How to use UIAlertController to replace UIActionSheet?

I am maintaining an old iOS project which based on SDK 6.0. A method on this project called -(void) showComboBox:(…

ios objective-c uialertcontroller uiactionsheet
Objective C: what is a "(id) sender"?

In some IBAction I saw: - (IBAction)pushButton:(id)sender; This (id)sender when do I use it?

objective-c ibaction sender
Xcode 6 and Embedded Frameworks only supported in iOS8

When using an embedded framework (dyld) in Xcode 6.0.1 with deployment target less that iOS 8 I get: Build is successful Runtime …

objective-c ios8 dylib dynamic-library
Cocoa Core Data efficient way to count entities

I read much about Core Data.. but what is an efficient way to make a count over an Entity-Type (like …

objective-c core-data
UIPopoverPresentationController on iOS 8 iPhone

Does anyone know if UIPopoverPresentationController can be used to present popovers on iPhones? Wondering if Apple added this feature on …

objective-c iphone uipopovercontroller ios8 uipopover
iOS: Use a boolean in NSUserDefaults

When the rootViewController of my application is loaded, I want to be able to check whether or not the users …

iphone objective-c boolean nsuserdefaults modalviewcontroller
Objective C: How to fix aspect ratio of image (and not change to fit imageview frame)

I am using the UIImagePickerController to select images for my app. However I am facing some challenges with regards to …

objective-c ios uiimagepickercontroller aspect-ratio
Creating a UISwitch Programmatically

In a seemingly never ending effort to learn more about iphone development, I have been playing around with some of …

iphone objective-c uiview uiswitch