在我的“didFinishLaunchingWithOptions”函数中,我在最后给出以下行:-
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound)];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
但它给出了以下警告:-
'NSObject' may not respond to 'application:didFinishLaunchingWithOptions' function
当我构建它时,应用程序以“未捕获的异常错误”终止
任何人都可以提出为什么会这样。谢谢