Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在ios中设置警报?_Ios_Swift_Alarm - Fatal编程技术网

如何在ios中设置警报?

如何在ios中设置警报?,ios,swift,alarm,Ios,Swift,Alarm,我想设置类似闹钟的默认时钟应用程序。我试过EKAlarm,但它只能像本地通知一样工作 我的目标是太多了,如果一个人睡着了就叫醒他。我们可以在iOS中实现这一点吗?您不能设置类似闹钟的默认时钟应用程序。您所能做的就是使用LocalNotification并在其中添加声音,最多30秒。如果手机处于静默模式,声音将不会播放。您无法设置类似闹钟的默认时钟应用程序。您所能做的就是使用LocalNotification并在其中添加声音,最多30秒。如果手机处于静默模式,声音将不会播放。检查:检查:

我想设置类似闹钟的默认时钟应用程序。我试过EKAlarm,但它只能像本地通知一样工作


我的目标是太多了,如果一个人睡着了就叫醒他。我们可以在iOS中实现这一点吗?

您不能设置类似闹钟的默认时钟应用程序。您所能做的就是使用LocalNotification并在其中添加声音,最多30秒。如果手机处于静默模式,声音将不会播放。

您无法设置类似闹钟的默认时钟应用程序。您所能做的就是使用LocalNotification并在其中添加声音,最多30秒。如果手机处于静默模式,声音将不会播放。

检查:检查: