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.

Delete keychain items when an app is uninstalled

I am using idandersen's scifihifi-iphone code for keychain and save password using [SFHFKeychainUtils storeUsername:@"User" andPassword:@"123" forServiceName:@"TestService" updateExisting:YES …

ios objective-c keychain
Code signing is required for product type Unit Test Bundle in SDK iOS 8.0

Getting Code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.0' My app target is code …

ios objective-c xcode
Check that a input to UITextField is numeric only

How do I validate the string input to a UITextField? I want to check that the string is numeric, including …

objective-c cocoa-touch validation nsstring uitextfield
Get Current date & time with [NSDate date]

My system's date time is 26 May 22:55 but when i get date with [NSDate date] date time is 27 May 02:35 is it …

objective-c cocoa nsdate
How to change UINavigationBar background color from the AppDelegate

I know how to change the UINavigationBar background image by doing [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"nabbar"] forBarMetrics:UIBarMetricsDefault]; and …

ios objective-c cocoa-touch uinavigationbar
Adding delay between execution of two following lines

I need to add delay between the execution of two lines in a(same) function. Is there is any favorable …

objective-c delay execution
Zooming MKMapView to fit annotation pins?

I am using MKMapView and have added a number of annotation pins to the map about a 5-10 kilometre area. …

ios objective-c iphone cocoa-touch mkmapview
registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later

When trying to register for push notifications under iOS 8.x: application.registerForRemoteNotificationTypes(UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound) I get …

objective-c ios8 apple-push-notifications dyld
Correct way to load a Nib for a UIView subclass

I am aware this question has been asked before but the answers are contradicting and I am confused, so please …

iphone ios objective-c uiview xib
Calling Objective-C method from C++ member function?

I have a class (EAGLView) which calls a member function of a C++ class without problems. Now, the problem is …

c++ objective-c