UILocalNotification 或 EventKIt

发布于 2024-09-12 08:24:16 字数 187 浏览 3 评论 0原文

我已阅读有关 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

木落 2024-09-19 08:24:16

我没有这样做,但是当本地通知触发时有一个函数会被调用,但在调用 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文