¡@

Home 

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

iphone Programming Glossary: viewtype

iPhone: preserve NSUserDefaults values when application is killed

http://stackoverflow.com/questions/6585200/iphone-preserve-nsuserdefaults-values-when-application-is-killed

UIImage imageNamed @ selected.png forState UIControlStateNormal appDelegate addTOFavourites self.ViewID viewType self.ViewType else favButton setBackgroundImage UIImage imageNamed @ unselected.png forState UIControlStateNormal appDelegate.. UIImage imageNamed @ unselected.png forState UIControlStateNormal appDelegate removeFromFavourites self.ViewID viewType self.ViewType It is working fine as long as my application is running but when I killed my application I am losing all my.. objectForKey kFavouriteItemsKey objectForKey viewID return YES return NO void addToFavourites NSString viewID viewType NSString viewType NSUserDefaults standardUserDefaults NSUserDefaults standardUserDefaults NSMutableDictionary dict standardUserDefaults..