How do I access the iPhone's settings from my code?

后端 未结 1 587
无人及你
无人及你 2021-01-05 21:42

All I want to do is be able to tell whether or not a user of my app is using the 24-hour clock or not. I realize that I can\'t set these settings, I just want to read them.

相关标签:
1条回答
  • 2021-01-05 22:06

    If you want this information in order to display a time, you don't need to query the Settings app. NSDateFormatter will format the time according to the user's settings automatically.

    0 讨论(0)
提交回复
热议问题