settings-bundle

How to know when user made change to settings bundle

穿精又带淫゛_ 提交于 2020-02-27 22:23:36
问题 I let the user make changes to their settings in the settings area of the iphone. During the next network sync i'd like to send the user changes to the server. But only if the changes are made. But how do I know when the user has made a change within the settings area? If I can, I'd like to avoid an option of always sending the information regardless if changed or not or getting the info from the server first and updating if different from the user defaults. Is there a nice and elegant way of

How to know when user made change to settings bundle

我与影子孤独终老i 提交于 2020-02-27 22:22:54
问题 I let the user make changes to their settings in the settings area of the iphone. During the next network sync i'd like to send the user changes to the server. But only if the changes are made. But how do I know when the user has made a change within the settings area? If I can, I'd like to avoid an option of always sending the information regardless if changed or not or getting the info from the server first and updating if different from the user defaults. Is there a nice and elegant way of

settings bundle - default value behaviour?

跟風遠走 提交于 2019-12-21 16:05:37
问题 I have created a settings bundle with a single preference value, a text field with a default value. When my application launches and I retrieve the value it is null. Do I have to manually code the value to use before the user has provided a value? Also if the user does to the preferences screen and enters the text field then leave it without making any changes the value will not be set ... the user has to actually change the value for it to be saved, is this correct? 回答1: No, don't do that.

Hiding preferences items in the settings bundle

假如想象 提交于 2019-12-12 11:43:40
问题 Just a question i've been stuck on for a while. I would like the user to be allowed to hide some settings found on the Root.plist. Anybody know if this is possible? failing this is it possible to essentially have two Root.plist files and swap between the two depending upon a variable? Please let me know if there is fundamentaly anything wrong with what I am try to achieve. Thanks for your help :) ps/ Alternatively could I be able to "grey-out" options within the app settings? 回答1: No,

How to retrieve values from settings.bundle in TVML?

坚强是说给别人听的谎言 提交于 2019-12-11 11:18:10
问题 In my tvOS app I created a settings bundle, but I don't know how to get the values in TVML. I know how to do it in Obj-c or Swift. var standardUserDefaults = NSUserDefaults.standardUserDefaults() var us: AnyObject? = standardUserDefaults.objectForKey("your_preference") if us==nil { self.registerDefaultsFromSettingsBundle(); } Any ideas about TVML way? Any kind of help is highly appreciated. 回答1: I am not aware of a direct TVJS access method... but you could easily set up a Swift/Obj-C-"proxy"

ios 8.2 and above settings bundle is not showing selected item but Default

爱⌒轻易说出口 提交于 2019-12-10 12:30:03
问题 I am facing a issue with App settings, i am using settings bundle to select the environment, but once selected and going back to app settings its showing again the default one as selected. This is observed only from ios 8.2 and above(Device and simulator). My settings bundle plist looks like below. <?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>PreferenceSpecifiers<

How to localize Settings.bundle in xcode4?

↘锁芯ラ 提交于 2019-12-04 08:16:49
问题 I am working on xcode4 and created a Settings.bundle for my project. I can edit the Root.plist file in xcode4 but it is not possible to edit the Root.strings file. It isn't even displayed in the editor. I can not expand the en.lproj folder as you see in the picture. But when I do right-click, open in external editor it gives me: Double click on Root.strings gives me: I tried it several times, creating a new window-based application project and creating a new Settings.bundle. I always can not

Settings bundle not showing up in iPhone settings

天涯浪子 提交于 2019-12-03 04:04:24
问题 I am trying to add a Settings bundle in my iPad app, but it randomly shows up in the iPad settings menu. When I run in Debug mode (Device or Simulator) it doesn't show up. When I build in Distribution mode and then deploy the app on the iPad A it shows up but doesn't on iPad B (I have several iPads to test). I am sure the Root.plist is correct as it works sometimes and sometimes not. I also tried with the default plist created when you add a Settings bundle. Is there something I forgot to do

How to localize Settings.bundle in xcode4?

耗尽温柔 提交于 2019-12-02 22:22:55
I am working on xcode4 and created a Settings.bundle for my project. I can edit the Root.plist file in xcode4 but it is not possible to edit the Root.strings file. It isn't even displayed in the editor. I can not expand the en.lproj folder as you see in the picture. But when I do right-click, open in external editor it gives me: Double click on Root.strings gives me: I tried it several times, creating a new window-based application project and creating a new Settings.bundle. I always can not localize it. Any ideas? Matthias Bauch EDIT: Apple fixed, once again, the wrong bug. Their change

Settings bundle not showing up in iPhone settings

你离开我真会死。 提交于 2019-12-02 17:23:25
I am trying to add a Settings bundle in my iPad app, but it randomly shows up in the iPad settings menu. When I run in Debug mode (Device or Simulator) it doesn't show up. When I build in Distribution mode and then deploy the app on the iPad A it shows up but doesn't on iPad B (I have several iPads to test). I am sure the Root.plist is correct as it works sometimes and sometimes not. I also tried with the default plist created when you add a Settings bundle. Is there something I forgot to do apart from adding the Settings.bundle in the project? Thanks in advance. I've had this problem a few