ios8 UIApplication API使用说明
2014-12-25 16:26
411 查看
- (void)registerUserNotificationSettings:(UIUserNotificationSettings *)
instead.[/code]
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.
method.Available in iOS 8.0 and later.
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’smethodapplication: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’s[code]application:didFailToRegisterForRemoteNotificationsWithError:
instead.[/code]
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 theregisterForRemoteNotificationsmethod.
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;
UIApplicationOpenSettingsURLStringUsed 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.
NSStringThe identifier for custom keyboards. To reject the use of custom keyboards in your app, specify this constant in your implementation of the
*const
UIApplicationKeyboardExtensionPointIdentifier;
application:shouldAllowExtensionPointIdentifier:delegate
method.Available in iOS 8.0 and later.
相关文章推荐
- jQuery UI 插件 使用说明+官方插件js包+jQuery及UI官方英文原版API手册
- IOS8 UIViewcontroller API使用说明
- jQuery UI 插件 使用说明+官方插件js包+jQuery及UI官方英文原版API手册
- 在J2ME中使用Nokia UI API实现图片的旋转
- Libscws C API 使用说明
- entlib 5.0学习笔记 caching application block 3 详细配置及api使用
- Android3.1和3.2及google_api下载使用说明
- iphone api 使用说明详细
- 使用PB调用API自动更新(非FTP模式)(二、API说明及定义(1))
- 缺陷跟踪系统BugTracker.NET 汉化版(扩展Metaweblog API) 使用说明
- 【转帖】InternetOpen\InternetOpenUrl\InternetReadFile 等相关Win32 网络API 使用详细说明
- jquery live 与使用 jquery ui api
- Stream、WshShell、WshUrlShortcut对象及Shell.Application的使用说明
- InternetOpen/InternetOpenUrl/InternetReadFile 等相关Win32 网络API 使用详细说明
- 相关Win32 网络API 使用详细说明
- entlib 5.0学习笔记 caching application block 3 详细配置及api使用
- 如何获取错误消息说明使用 FormatMessage API
- InternetOpen/InternetOpenUrl/InternetReadFile 等相关Win32 网络API 使用详细说明
- InternetOpen\InternetOpenUrl\InternetReadFile 等相关Win32 网络API 使用详细说明
- C#中使用API(SHFileOperation)进行文件操作,特别说明了回收站相关参数