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.

iOS: Compare two dates

I have a NSDate that I must compare with other two NSDate and I try with NSOrderAscending and NSOrderDescending but …

objective-c ios nsdate
Variably modified array at file scope

I want to create a constant static array to be used throughout my Objective-C implementation file similar to something like …

c objective-c arrays static constants
Make a phone call programmatically

How can I make a phone call programmatically on iPhone? I tried the following code but nothing happened: NSString *phoneNumber = …

ios objective-c iphone telephony phone-call
iOS 7 - Failing to instantiate default view controller

I am using Xcode 5 in a newly created app and when I just create it I go for the run …

ios iphone objective-c xcode xcode5
in iPhone App How to detect the screen resolution of the device

In iPhone App, while running the App on device How to detect the screen resolution of the device on which …

ios objective-c cocoa-touch
Creating and playing a sound in swift

So what I want to do is create and play a sound in swift that will play when I press …

ios objective-c audio swift
Displaying splash screen for longer than default seconds

Is it possible to display the Default.png for a specified number of seconds? I have a client that wants …

ios objective-c splash-screen
How do I scroll the UIScrollView when the keyboard appears?

I'm having trouble with my code. I'm trying to move the UIScrollView when I'm editing an UITextField that should be …

ios objective-c iphone cocoa-touch scrollview
iOS 8 Snapshotting a view that has not been rendered results in an empty snapshot

In iOS 8 I am having problem capturing images from camera till now I am using this code for UIImagePickerController *controller=[[…

objective-c ios8 uiimagepickercontroller
tap gesture recognizer - which object was tapped?

I'm new to gesture recognizers so maybe this question sounds silly: I'm assigning tap gesture recognizers to a bunch of …

ios objective-c uigesturerecognizer uitapgesturerecognizer