If you do not want to show the alert action button you can disable it by setting the hasAction
property to NO
.
Note that without the action button there is no option for the user to launch the application from the alert.
(If you do not want to see the alert at all you should set alertBody
to nil
.)
EDIT:
- You can not remove cancel button.
- You have only option to remove action button not cancel button and As
it is defined in implementation file of
UILocalNotification
so u can not override it.