问题
when I use iOS 7 simulator ,
setting.bundle in my project can work effectively . I change app settings by toggle switch and then immediately in to app setting again,the value changed as I just do.
but when go run iOS 8 simulator , every change in my custom-app-settings are not stored.
I have tried rebooting the device / reinstalling the app. It seems the switch has no effect only in iOS 8 simulator?
step:1 toggleswitch, change value and go back.
step:2 the same
回答1:
This has been fixed in Xcode 6.1 GM seed. simulator saves settings now :)
回答2:
I think is an XCode issue. Using XCode 6 beta6/ Beta7 / GM the Settings bundle work on iOS7 simulators but not 8. The changes you make are supposed to be saved to the following path:
/Users/<User Name>/Library/Application Support/iPhone Simulator/<iOS Version>
However the iOS versions there don't include 8. I am waiting for the final XCode version.
回答3:
It is normal now at Xcode 6 beta 7.@@
回答4:
I have the problem actually on my device. I can change the settings once, but when I switch the toggle back to it's default value it does not have any effect on my app (metric/imperial units)
来源:https://stackoverflow.com/questions/25134171/ios-setting-bundle-issue-with-ios-8-at-simulator