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

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -