使用IOS sdk从目标c中的另一个应用程序获取时钟应用程序中设置的闹钟时间
如何在 iPhone 中的默认时钟应用程序中以编程方式在另一个 iPhone 应用程序中设置闹钟时间。我发现有人说可以使用 CFPreferences api,但找不到使用它从时钟应用程序获取闹钟时间的确切方法。非常感谢任何帮助。
How to get alarm time set in default Clock app available in iPhone programatically inside another iphone application. I have found someone say that CFPreferences api can be used but cannot find the exact way of using it to get alarm time from Clock app. Any help is much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来对于您正在寻找的内容没有直接的解决方案。关于 CFPreferences API,您首先需要了解时钟应用程序如何存储警报信息,或者即使它首先使用首选项来存储警报详细信息。一旦你弄清楚了这一点,那么只有你可以使用 CFPreferences API 来实现你想要的。
Looks like there's no straightforward solution to what you're looking for. Regarding CFPreferences API, you'll first need to know how the Clock app stores the alarm information, or even if it does use the Preferences to store the alarm details in the first place. Once you figure this out then only you could use the CFPreferences API to achieve what you want.