Create a Settings Bundle for iOS with Swift
Here are some quick little code tips for creating a settings bundle in Swift for iOS. Settings are very easy to setup for iOS. Just note that the simulator currently does not work with settings correctly. The code in this post does work just fine on a device. Load the Defaults into the Settings: let appDefaults = [SettingsKeys.namePreferenceKey: “Default Name”] NSUserDefaults.standardUserDefaults().registerDefaults(appDefaults) Get the Settings value: var namePreference = NSUserDefaults.standardUserDefaults().stringForKey(SettingsKeys.namePreferenceKey) Save…
Read more...Git Best Practices
Some questions have come up about using the master branch or a development branch. So I wanted to give my thoughts on the subject. The master branch is always used for current development of the next release. You can branch off to develop a new feature or fix an issue and then merge that back to master. When we do a major release you create a release branch from master….
Read more...Tags:Branch , code , Git , Rebase , Repository , Source , SourceTree , SourceTreeApp , tips