How I can open native alarm clock in iphone by using code?

前端 未结 3 2061
迷失自我
迷失自我 2021-01-05 15:55

I have to crate a sample app in which when I clicked a button that should open the native alarm clock so that user can use it for setting alarm?

3条回答
  •  日久生厌
    2021-01-05 16:42

    For default app MobileClock.app exists several url scheme. If u have a look in system files and open content for MobileClock.app u will find in info.plist private url scheme:

    • clock-worldclock,
    • clock-alarm,
    • clock-stopwatch,
    • clock-timer,
    • clock-timer-running .

    Which using them should be possible to run app externally but only from Today widgets. Also the same for the mobile notes app.

提交回复
热议问题