小编Jos*_*phT的帖子

检测"允许通知"为iOS8打开/关闭

我试图在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)

ios uilocalnotification ios8

41
推荐指数
6
解决办法
3万
查看次数

Kendo UI网格序列号列

我正在尝试将Kendo网格的第一列作为序列索引,该序列不受行记录排序的影响。有什么办法可以实现?谢谢

javascript kendo-ui kendo-grid

5
推荐指数
1
解决办法
4754
查看次数

iOS EAAccessory框架:唤醒以前配对的不自动连接的配件

我在Apple网站上发现:

还提供支持以唤醒先前未自动连接的配对附件.

这对我来说很有用,因为用户在启动应用程序之前不需要每次都进行配对.

我提到了EAAccessory Manager API,但似乎没有这样的调用.

任何人都可以提供有关此主题的更多参考资料,我该如何去做?

bluetooth ios eaaccessory

5
推荐指数
1
解决办法
1582
查看次数

iOS应用程序在后台运行

我有一个应用程序需要在一个固定的时间间隔(1分钟)内从服务器轮询状态,以在应用程序中触发警报.

为此目的使应用程序在后台保持活动状态.我正在考虑为后台模式启用位置更新.所以我仍然可以继续从服务器轮询数据.

这可行吗?或者我的应用会被Apple拒绝吗?

或者,有更好的方法在后台保持app活着,让我以1分钟的间隔轮询数据?

background ios

0
推荐指数
1
解决办法
250
查看次数