iOS
banyingli
这个作者很懒,什么都没留下…
展开
-
iPhone开发博客
<br />http://hi.baidu.com/ncudlz/home原创 2010-12-28 15:01:00 · 1563 阅读 · 0 评论 -
【iPhone开发常用代码积累】UIWebView
<br />添加要显示的文件(通常在ViewDidLoad方法中)<br />//添加要显示的文件 NSString *filePath = [[NSBundle mainBundle]pathForResource:@"HitBean" ofType:@"htm"]; NSData *aboutData = [NSData dataWithContentsOfFile:filePath]; if (aboutData) { aboutView.opaque = NO; aboutV原创 2011-01-09 10:24:00 · 3502 阅读 · 0 评论 -
【iPhone开发常用代码积累】 归 档
HistoryObject.h#define kHistoryField1Key @"indexid"#define kHistoryField2Key @"hw"#import @interface HistoryObject : NSObject { NSString *indexid; NSString *hw;}@property (nonatomic, retain) NSString *indexid;@property (nonatomic,原创 2011-01-08 21:02:00 · 1215 阅读 · 0 评论 -
【iPhone开发常用代码积累】在应用程序中添加用户默认设置
在delegate中//从用户设置中读取上一次的设置 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; isBlur = [defaults boolForKey:kBlurValue]; openVoice = [defaults boolForKey:kVoiceValue]; level = [defaults objectForKey:kLevelValue]; countTime = [defau原创 2011-01-08 21:13:00 · 1240 阅读 · 0 评论