2013年5月17日
摘要: 在iOS5.1以后的版本中,清除所有的NSUserDefaults Data的时候会报错,直接crash在清除的时候用一下代码,问题解决。NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];NSDictionary *userDefaultsDictionary = [userDefaults dictionaryRepresentation];NSString *strWebDatabaseDirectory = [userDefaultsDictionary objectForKey:@"Web 阅读全文
posted @ 2013-05-17 11:26 easonoutlook 阅读(2024) 评论(0) 推荐(0) 编辑
摘要: The preferredInterfaceOrientationForPresentation method will rotate your view to whatever you set it to when a view is loaded. Be careful as when you come back to your view it may be upside down. Do not include this method if you don’t want it to override the current orientation when you dismiss say 阅读全文
posted @ 2013-05-17 04:24 easonoutlook 阅读(409) 评论(0) 推荐(0) 编辑