I show local notification every one minute till user responds. However my application is password protected. If user does not responds for ten minutes and responds to eleventh. He开发者_开发知识库 goes to password verification. However he has to close ten notification. Can I avoid this? I cannot straight away cancel all local notifications, he should enter the password to do this. Is there any way to close open notifications programmatically.
I would delete your app from my iPhone immediatelly if it started to bug me every minute.
Don't do that. Find some less obtrusive way of letting the user know.
I don't think there is any way to do so as there is no event available which can give you the control of 'View' or 'Close' button action.You should try to find some another way.UIAlertView with timer can be one way if I am not misunderstanding your problem.There you get a delegate method which can be used to close the alert programatically.
精彩评论