简体   繁体   中英

Dont see settings in xcode project

I'm doing an app and i try to have a setting that the user would be able to change from the iOS Settings page,

i opened a new settings.bundle in my app and kept some of the default values, but i dont see it in my actual device settings

i tried reinstalling that app many tines, and i still dont see the app settings in my settings options on my iOS

here is my settings i created:

在此处输入图片说明

i kept the default values in the Root.plist

在此处输入图片说明

but also on the simulator and also on the actually device i dont see anything on the settings

在此处输入图片说明

what am i doing wrong ?

From the official docs at https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/UserDefaults/Preferences/Preferences.html :

A Settings bundle has the name Settings.bundle and resides in the top-level directory of your app's bundle. This bundle contains one or more Settings page files that describe the individual pages of preferences. It may also include other support files needed to display your preferences, such as images or localized strings. Table 4-2 lists the contents of a typical Settings bundle.

So renaming your settings bundle to Settings.bundle should fix the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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