cannot initialize a parameter of type UIRemote NotificationType with an rvalue of type int

Когда я использую [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; для регистрации удаленного push-уведомления, возникает ошибка cannot initialize a parameter of type 'UIRemoteNotificationType' with an rvalue of type 'int', кто-нибудь знает почему? спасибо.

Окружение моего проекта: Xcode 4.2 + iOS 5.

5
задан 谢小进 14 December 2011 в 09:59
поделиться