In my ‘didFinishLaunchingWithOptions’ function i am giving following line at the end :-
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
But it is giving the following warning:-
'NSObject' may not respond to 'application:didFinishLaunchingWithOptions' function
And when i build it, the application terminates with ‘Uncaught Exception error’
Can anybody suggest why this is happening.
Thanks
Try
Base objct like NSObject dont implement method of
didFinishLaunchingWithOptions:launchOptions