Created
November 28, 2013 06:02
-
-
Save key/7687885 to your computer and use it in GitHub Desktop.
Background App Refreshについて ref: http://qiita.com/key/items/3cc7f631393149bac567
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIApplication *app = [UIApplication sharedApplication]; | |
if (app.backgroundRefreshStatus == UIBackgroundRefreshStatusAvailable) { | |
NSLog(@"バックグラウンド更新が可能"); | |
} else if(app.backgroundRefreshStatus == UIBackgroundRefreshStatusDenied) { | |
NSLog(@"バックグラウンド更新はユーザによって禁止されている。"); | |
} else if(app.backgroundRefreshStatus == UIBackgroundRefreshStatusRestricted) { | |
NSLog(@"デバイス設定により無効にされている(ユーザが有効にすることは出来ない)。"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment