开发者

iPhone settings: create dependent settings?

开发者 https://www.devze.com 2023-01-30 11:56 出处:网络
Is it possible to create \"dependent settings\"? e.g. you have hierarchical 开发者_开发百科settings like this:

Is it possible to create "dependent settings"? e.g. you have hierarchical 开发者_开发百科settings like this:

 - include animals
 -- include dogs
 -- include cats

where toggling animals would automatically toggle dogs and cats (I know I can cater for that in code, but can the settings screen that is provided by the OS be configured so the UISwitch for dogs is automatically set to off if include animals is set to off?)


No. You'll either need to change your UI so this toggle is not required, display both options and hope it doesn't confuse your users or only include the settings inside your app where you can write the correct code yourself.

This is a really annoying limitation. It's probably worth raising a bug report with Apple.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号