ios8 UIApplication API使用说明

- (void)registerUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings 

After calling this method, the app calls theapplication:didRegisterUserNotificationSettings: method of its app delegate to report the results. You can use that method to determine if your request was granted or denied by the user.

  Available in iOS 8.0 and later.


- (UIUserNotificationSettings*)currentUserNotificationSettings

If you configure local or push notifications with unavailable notification types, the system does not display the corresponding alerts to the user. The system does still deliver the local and push notifications to your app.

Available in iOS 8.0 and later.


- (void)registerForRemoteNotifications

Call this method to initiate the registration process with Apple Push Service. If registration succeeds, the app calls your app delegate object’sapplication:didRegisterForRemoteNotificationsWithDeviceToken:method and passes it a device token. You should pass this token along to the server you use to generate push notifications for the device. If registration fails, the app calls its app delegate’sapplication:didFailToRegisterForRemoteNotificationsWithError:method instead.

Available in iOS 8.0 and later.


- (BOOL)isRegisteredForRemoteNotifications

This method reflects only the successful completion of the remote registration process that begins when you call theregisterForRemoteNotifications method. This method does not reflect whether push notifications are actually available due to connectivity issues. The value returned by this method takes into account the user’s preferences for receiving push notifications.

Available in iOS 8.0 and later.


NSString *const UIApplicationOpenSettingsURLString;

UIApplicationOpenSettingsURLString

Used to create a URL that you can pass to the openURL: method. When you open the URL built from this string, the system launches the Settings app and displays the app’s custom settings, if it has any.

Available in iOS 8.0 and later.


NSString *const UIApplicationKeyboardExtensionPointIdentifier;

The identifier for custom keyboards. To reject the use of custom keyboards in your app, specify this constant in your implementation of the application:shouldAllowExtensionPointIdentifier: delegate method.

Available in iOS 8.0 and later.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值