Can you programmatically toggle Do Not Disturb mode in iOS 8 (w/ Swift)?

后端 未结 2 1868
礼貌的吻别
礼貌的吻别 2021-01-12 06:47

Doing some research on this, it looks like you couldn\'t toggle Do Not Disturb mode in iOS 6 or 7. Wondering if you can do it in iOS 8. I can\'t find anything in Apple\'s do

2条回答
  •  失恋的感觉
    2021-01-12 07:32

    Although the correct answer is "no at the moment you cannot", saying it is because of sandboxing is misleadings. Most of the things you do on iOS when you use Apple provided SDKs are basically Apple sanctioned circumventions of the sandbox.

    The correct answer is, no you cannot because Apple does not allow it and has not yet published and SDK to allow this.

提交回复
热议问题