开发者

Close local notification programmatically

开发者 https://www.devze.com 2023-02-17 04:53 出处:网络
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开发者_开发知识库 goe

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消