我试图在iOS 8中检测应用程序的本地通知设置
对UIUserNotificationSettings,它返回我7我已经把所有的徽章,声音和提醒.
在设置中,我关闭"允许通知",应用程序仍然返回我的UIUserNotificationSettings(徽章,声音和警报).有没有办法检测"允许Notification"开/关?
- (void)application:(UIApplication *)application
didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings{
NSLog(@"---notificationSettings.types %d" , notificationSettings.types );
if(notificationSettings.types!=7){
UIAlertView * alert =[[UIAlertView alloc ] initWithTitle:@"Please turn on Notification"
message:@"Go to Settings > Notifications > App.\n Switch on Sound, Badge & Alert"
delegate:self
cancelButtonTitle:@"Ok"
otherButtonTitles: nil];
[alert show];
}
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试将Kendo网格的第一列作为序列索引,该序列不受行记录排序的影响。有什么办法可以实现?谢谢
我在Apple网站上发现:
还提供支持以唤醒先前未自动连接的配对附件.
这对我来说很有用,因为用户在启动应用程序之前不需要每次都进行配对.
我提到了EAAccessory Manager API,但似乎没有这样的调用.
任何人都可以提供有关此主题的更多参考资料,我该如何去做?
我有一个应用程序需要在一个固定的时间间隔(1分钟)内从服务器轮询状态,以在应用程序中触发警报.
为此目的使应用程序在后台保持活动状态.我正在考虑为后台模式启用位置更新.所以我仍然可以继续从服务器轮询数据.
这可行吗?或者我的应用会被Apple拒绝吗?
或者,有更好的方法在后台保持app活着,让我以1分钟的间隔轮询数据?
ios ×3
background ×1
bluetooth ×1
eaaccessory ×1
ios8 ×1
javascript ×1
kendo-grid ×1
kendo-ui ×1