我的类与协议(UIApplicationDelegate)

@interface BangAppDelegate : NSObject <UIApplicationDelegate> {
    UIWindow *window;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@end

和BangAppDelegate有方法
didRegisterForRemoteNotificationsWithDeviceToken


didFinishLaunchingWithOptions
didRegisterForRemoteNotificationsWithDeviceToken是用于注册APNS的功能。
我想知道执行顺序。
首先调用哪个功能?

最佳答案

确实先完成了使用选项的启动,然后根据向APNs服务器的注册是否成功来调用didRegister / FailedToRegister。

10-08 11:51