프로그래밍 놀이터/iOS
[iOS] UILocalNotification 권한 요청하는 코드
돼지왕 왕돼지
2018. 4. 5. 08:30
반응형
[iOS] UILocalNotification 권한 요청하는 코드 |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if ([UIApplication instancesRespondToSelector:@selector(registerUserNotificationSettings:)]){
[application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound categories:nil]];
}
...
}
반응형