localnotification

Set default iOS local notification style for application

♀尐吖头ヾ 提交于 2019-11-26 08:16:51
问题 Starting with iOS 5, there are two notification styles: banner and alert (the \"old\" style). A user can set which style to use for each application in the settings. However, the default now seems to be that notifications are displayed banner style. I\'m using local notifications for reminders about events that will happen \"now\". A banner disappears shortly after it appeared (and it\'s not obvious enough that one can tap it), so for these notifications it would be desirable to have the

How to set Local Notification repeat interval to custom time interval?

廉价感情. 提交于 2019-11-26 05:53:51
问题 I am making an iPhone app, which has a requirement of Local Notifications. In local notifications there is repeatInterval property where we can put the unit repeat intervals for mintute, hour, day,week,year, etc. I want that repeat interval should be 4 hours. So every 4 hours the local notification comes. I dont want the user to set seperate notifications for each. I want the user to be able to set repeatInterval as 4 hours. How do I do that? 回答1: Got the answer, it is as straight as it gets.