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

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -