使用IOS sdk从目标c中的另一个应用程序获取时钟应用程序中设置的闹钟时间 [英] Get alarm time set in Clock app from another app in objective c using IOS sdk

查看:23
本文介绍了使用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.

推荐答案

对于您要寻找的内容,似乎没有简单的解决方案.关于 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.

这篇关于使用IOS sdk从目标c中的另一个应用程序获取时钟应用程序中设置的闹钟时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆