Adding settings to your iOS app

  • Display preferences inside the app.
  • Use a Settings bundle to manage preferences from the Settings app.
Fig 1. Types of controls supported by the Settings app

Adding the Settings Bundle

  1. Choose File > New > New File.
  2. Under iOS, choose Resource, and then select the Settings Bundle template.
  3. Name the file Settings.bundle.
func applicationDidBecomeActive(_ application: UIApplication) {SettingsBundleHelper.checkAndExecuteSettings()SettingsBundleHelper.setVersionAndBuildNumber()}

Updating Defaults with Observers

deinit { //Not needed for iOS9 and above. ARC deals with the observer in higher versions.NotificationCenter.default.removeObserver(self)}

If you enjoyed reading this post, please share and recommend it so others can find it 💚💚💚💚💚💚 !!!!




iOS and tvOS developer, dreamer, photographer 🤨

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Dynamic Programming Vs Greedy Method for solving Gold Mine Problem

Integration Suricata IDS and Cuckoo Sandbox

BUST a BNB — Time to Bust a BNB update!

Digital Twins: Your Next Step in IoT

User Authentication with Guardian for Phoenix 1.3 Web Apps

Which programming language to use for IMAGE PROCESSING

Progressive Enhancement to PWAs

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


iOS and tvOS developer, dreamer, photographer 🤨

More from Medium

Preventing Invalid Characters from Being Entered in a UITextField

Week #4 — Lagbaja and My First iOS Job Interview

Fundamental Design Pattern: ModelViewController

iOS CI&CD tips pt 3