小编use*_*584的帖子

使用arc不允许隐式转换'unsigned long'UIUserNotificationSettings*'

iOS 8中的推送通知不起作用.

错误显示:

implicit conversion of 'unsigned long 'UIUserNotificationSettings *' is disallowed with arc
Run Code Online (Sandbox Code Playgroud)

码:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [application registerUserNotificationSettings:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)];
    return YES;
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述 我正在使用ios 8.0和xcode 6 beta.

cocoa-touch objective-c ios xcode6 ios8

6
推荐指数
2
解决办法
4192
查看次数

标签 统计

cocoa-touch ×1

ios ×1

ios8 ×1

objective-c ×1

xcode6 ×1