简体   繁体   English

从“设置”中的“按钮”重置iOS应用设置

[英]Reset iOS App Settings from Button in Settings

I have some user-adjustable settings in Settings.bundle/Root.plist . 我在Settings.bundle/Root.plist有一些用户可调的设置。

I want to enable the user to reset these settings to their default values with a button or similar from outside the app , right in the Settings. 我想让用户可以从应用程序外部的按钮或类似按钮中将这些设置重置为默认值,就在“设置”中。

Is there a way to accomplish that? 有没有办法做到这一点?

您需要设置默认值并将其保存在某处...当用户按下“还原为默认值”按钮时,您应该进入并将所有设置分别设置为已保存的默认值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM