uilocalnotification - Need Alternation of reisterUserNotificationSettings for iOS Version less than 8.0 -


For iOS version 8.0, code is required to register UserNotificationSettings in my app

I Uses the following for iOS 8.0:

  [[UIApplication ShareApp] Register User Notification Settings: [UIUserNotificationSettings settingsForTypes: UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound Categories: Zero]];  

Please help me

You have to check that Does the app include that method (selector).

  (If the application responds to SIL: @selector (registerUserNotificationSettings :)) {[Application Register User Notification Settings: [UIUserNotificationSettings SettingsForTypes: (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert) Categories: Zero] ]; }  

Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -