settings.bundle

ios13 settings bundle with child pane crashes Settings.app on real device

感情迁移 提交于 2019-12-20 10:34:46
问题 Using an iPad mini4 (A1538), running iOS 13 beta 6, using XCode 11 beta 5... Create a new iOS project using the Single View App template in XCode 11. Add a Settings.bundle with the root containing only two items: Child Pane Text Field Create a child pane plist file, add it to the Settings.bundle and link it to the root Child Pane entry via its Filename property, per normal Apple Settings Bundle guidelines. For the child pane create two items: Group Specifier (seems to be required else nothing

Settings bundle for iPhone app

廉价感情. 提交于 2019-12-19 03:19:03
问题 Right I am developing an app that has two lots of settings Dev and Live. Is there a way to distinguish which lot of settings should be used based on whether the app is live or still in development or do I have to change the whole settings files before it goes live. I was unsure on how to put this so if your not sure place just ask. 回答1: What you want to do is define a Preprocessor Macro based on your build configuration. So if you have a build configuration called dev and one called live you

Setting bundle default value won't set

三世轮回 提交于 2019-12-18 18:58:12
问题 I have an iOS application with a settings.bundle that handles various settings for my application with Switch toggle . I set default values in my root.plist file (using the DefaultValue property) to YES but any time the application launches on a device or the iOS simulator all values go NO . It worked well only on the first launch. I am retrieving the defaults with this code (am I doing something wrong here?): NSUserDefaults *localeDefaults = [NSUserDefaults standardUserDefaults]; BOOL

iOS UIAlertView button to go to Setting App

孤者浪人 提交于 2019-12-17 10:10:47
问题 Is there a way to have the button of a UIAlertView go to the Settings App for the specific App calling it? Thanks 回答1: For example: NSURL*url=[NSURL URLWithString:@"prefs:root=WIFI"]; [[UIApplication sharedApplication] openURL:url]; And [font=] About — prefs:root=General&path=About Accessibility — prefs:root=General&path=ACCESSIBILITY Airplane Mode On — prefs:root=AIRPLANE_MODE Auto-Lock — prefs:root=General&path=AUTOLOCK Brightness — prefs:root=Brightness Bluetooth — prefs:root=General&path

dependent multi values in setting bundle

夙愿已清 提交于 2019-12-12 00:29:54
问题 I want to use two multi value in setting bundle. Second multi value's values depend on first multi value's chosen value. For example: first one is 'States' and second one is 'Cities'. Every states has different cities. Could i explain it? 回答1: You can't do this in a settings bundle. You could put this UI in your app itself, perhaps in a settings screen. 来源: https://stackoverflow.com/questions/11556332/dependent-multi-values-in-setting-bundle

How to Open a URL in Safari from settings.bundle

冷暖自知 提交于 2019-12-11 22:19:25
问题 How can I open a URL in Safari from Settings? Something like in the Nike+ App Does it need to be customized? I can't seem to find a Type for adding a URL in the Root.plist. 回答1: you can check out this on git https://github.com/futuretap/InAppSettingsKit then put this value into the plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>DefaultValue</key> <string

Need a robust solution to keyboard entry of an integer value in Settings bundle

不羁岁月 提交于 2019-12-11 20:11:09
问题 I have an integer value that spans a range so large it is impractical to use a slider, as it lacks the sensitivity to pick out an exact value in that range. I used a PSTextFieldSpecifier instead, and set the keyboard to Numbers. However, in Settings.app, the copy and paste function allows text to be inserted into what should be a numeric field. Does anyone have a solution to the problem? 回答1: I have always implemented this with a custom - (BOOL)textField:(UITextField *)textField

Set Title String to Settings Bundle iOS

試著忘記壹切 提交于 2019-12-11 13:18:38
问题 I need to localize my setting screen text dynamically based on the iphone setting language/user preferred language. In my scenario, localized text are fetching from the server. I am storing text in database and showing it on the screen. Setting screen should be localized based on the user preferred language/device language. I tried to access the title string of an Item in Root.plist. But it returns value but i need title. How can i access/change the title of the item. for eg: { DefaultValue =

Is there a way to have a settings bundle ONLY in the debug version of my app?

风格不统一 提交于 2019-12-11 12:04:44
问题 For production all users of my app will point at the production URL but for dev we have multiple developers and I want to create a settings bundle so the other devs can easily reconfigure their ios devices to point at their own machines. Is there a way to only have the settings bundle in the debug (aka non production) version of the app? 回答1: I wrote a wrapper for the NSUserDefaults. In my app delegate I check compiler flags to see if we are in release or debug mode and set the default to the

How to view a sliders value in bundle settings , iOS?

无人久伴 提交于 2019-12-11 09:04:17
问题 I am using a slider in the bundle settings of my app to make the user choose a distance between 1 - 1000 meters. The slider is working fine , but i would like to show the user the actual value of the slider. Is this possible? 回答1: I think there is no viable possibility to do this with a slider. You could use a PSMultiValueSpecifier , a "Multi Value Element" instead, with 4 sections, one for each digit of your 4-digit number. It could then be set and displayed at the same time. 来源: https:/