¡@

Home 

2014/10/15 ¤U¤È 10:13:51

iphone Programming Glossary: self.settings

How to make UITabBarController load view controllers lazily?

http://stackoverflow.com/questions/1197130/how-to-make-uitabbarcontroller-load-view-controllers-lazily

UIBarStyleBlackOpaque navHistory.tabBarItem.image UIImage imageNamed @ tab_history.png Create Controller 3 self.settings SettingsController alloc initWithNibName @ SettingsView bundle nil autorelease UINavigationController navSettings UINavigationController..

Updating & changing settings plist files with new versions of an app

http://stackoverflow.com/questions/1609305/updating-changing-settings-plist-files-with-new-versions-of-an-app

settingsPath self.applicationDocumentsPath stringByAppendingPathComponent @ Settings.plist Read in Default settings self.settings NSMutableDictionary dictionaryWithContentsOfFile defaultSettingsPath Read in Current settings and merge NSDictionary currentSettings.. currentSettings NSDictionary dictionaryWithContentsOfFile settingsPath for NSString key in currentSettings allKeys if self.settings allKeys indexOfObject key NSNotFound if currentSettings objectForKey key isEqual self.settings objectForKey key Different.. allKeys if self.settings allKeys indexOfObject key NSNotFound if currentSettings objectForKey key isEqual self.settings objectForKey key Different so merge self.settings setObject currentSettings objectForKey key forKey key void saveSettings..