码迷,mamicode.com
首页 > 移动开发 > 详细

iOS_根据系统版本编译不同的代码

时间:2015-04-16 20:01:05      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:

RT:

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) {
        [APService registerForRemoteNotificationTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) categories:nil];
    }
#else
    NSLog(@"else");
#endif


iOS_根据系统版本编译不同的代码

标签:

原文地址:http://blog.csdn.net/xietao3/article/details/45078519

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!