반응형
NSString *helpPath = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html" ];
NSURL *helpURL = [NSURL fileURLWithPath:helpPath];
NSData *data = [NSData dataWithContentsOfURL:helpURL];
// 인코딩만 넣어주면 됩니다.
[self.webView loadData:data MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:helpURL];
반응형
'iDev' 카테고리의 다른 글
Google I/O 2011 - [준비편 3] 등록! 시작! (1) | 2011.02.08 |
---|---|
Sound Programming Topics for Cocoa (0) | 2011.01.09 |
cocos2d에 game center 넣기 (0) | 2010.12.24 |
[iOS Dev] modifying layer that is being finalized - error (0) | 2010.12.15 |
Linking Error: CGRectZero and CGRectOffset - [#iOSDevKor] (0) | 2010.07.14 |