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.

Storyboard - refer to ViewController in AppDelegate

consider the following scenario: I have a storyboard-based app. I add a ViewController object to the storyboard, add the class …

iphone objective-c ios uiviewcontroller storyboard
When should I use nil and NULL in Objective-C?

This is sample code: NSDictionary *myDictionary = [NSDictionary dictionary]; NSNumber *myNumber = [myDictionary valueForKey: @"MyNumber"]; NSLog(@"myNumber = %@", myNumber); // output myNumber = (null) if (…

objective-c null nsnull
What goes into your .gitignore if you're using CocoaPods?

I've been doing iOS development for a couple of months now and just learned of the promising CocoaPods library for …

objective-c git cocoapods
Passing parameters to addTarget:action:forControlEvents

I am using addTarget:action:forControlEvents like this: [newsButton addTarget:self action:@selector(switchToNewsDetails) forControlEvents:UIControlEventTouchUpInside];

ios objective-c iphone cocoa-touch uicontrolevents
How can I programmatically check whether a keyboard is present in iOS app?

I need to check the condition of keyboard visibility in my iOS app. Pseudocode: if(keyboardIsPresentOnWindow) { //Do action 1 } else if (…

ios objective-c keyboard
UIAlertView first deprecated IOS 9

I have tried several ways to use UIAlertController,instead of UIAlertView. I tried several ways but I cannot make the …

ios objective-c uialertview uialertcontroller
String comparison in Objective-C

I've currently got a webserver set up which I communicate over SOAP with my iPhone app. I am returning a …

objective-c nsstring
Can I use Objective-C blocks as properties?

Is it possible to have blocks as properties using the standard property syntax? Are there any changes for ARC?

ios objective-c automatic-ref-counting objective-c-blocks
Xcode Objective-C | iOS: delay function / NSTimer help?

So I'm developing my first iOS application and I need help.. Simple program for now, I have about 9 buttons and …

objective-c xcode ios4 timer delay
How to send json data in the Http request using NSURLRequest

I'm new to objective-c and I'm starting to put a great deal of effort into request/response as of recent. …

iphone objective-c cocoa-touch json nsurlrequest