UILocalNotification 或 EventKIt
我已阅读有关 UILocalNotification 的材料,但我无法在通知触发时播放无限循环声音,它确实会播放一小段时间并显示警报,但我想实现播放连续声音的目标通过提供贪睡和安静的选项来发出声音。我也浏览过 UIEvent Kit,但无法找到实现此目标的方法。还有一个问题是有没有一种方法可以自定义苹果默认提供的警报按钮操作。 寻找你们的早期回应 提前致谢。
I have read the material regarding UILocalNotification , but there is no way i find to play a infinite loop sound when the notification is fired , it does play for a short time with showing an alert, but i want to achieve the goal of playing a continuos sound by providing the option of snooze and quite . I have gone through the UIEvent Kit too but unable to find a way to achieve this goal. One more question is there a way to customize the alert button action which are provided by default by the apple.
looking for you guys early response
Thanks in Advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有这样做,但是当本地通知触发时有一个函数会被调用,但在调用 ok 或 view 或您命名的任何内容之前,应该按下该按钮,然后您可以在该函数中发送短信代码,并且应该小心为此......希望这会帮助你
I did not do that but there is a function when local notification fires this function is invoked but before it invoked the ok or view or what ever you name the button should be pressed after that you can sms code in that function and it should take care for that ...Hope This will help you