Develop
2015.02.10 18:01
[ios] 로컬에 있는 html 실행하기
Views 1035 Comment 0
HTML 파일을 리소스로 두고 웹뷰에서 읽어서 로드하기.
// Load the html as a string from the file system NSString *path = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]; NSString *html = [[NSString alloc] initWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil]; // Tell the web view to load it [WebView loadHTMLString:html baseURL:[[NSBundle mainBundle] bundleURL]];
[출처] http://stackoverflow.com/questions/4645414/how-can-i-load-a-local-html-file-into-the-uiwebview
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
1053 | Develop | [ios] 동영상 플레이어 샘플 (for Remote Url) | hooni | 2017.02.07 | 1648 |
1052 | Develop | [ios] 동영상 플레이어 샘플 (for Local File) | hooni | 2017.02.07 | 1077 |
1051 | Develop | XML, JSON, BSON, MSGPACK 장,단점 비교 | hooni | 2017.01.11 | 2247 |
1050 | PPT | [ppt] 정보보호관리 발표내용 #2 | hooni | 2016.12.08 | 1071 |
1049 | Etc | ISMS 인증기준 – 정보보호대책 (시스템개발보안) | hooni | 2016.12.01 | 1328 |
1048 | PPT | [ppt] 정보보호관리 발표내용 | hooni | 2016.11.30 | 1082 |
1047 | Etc | 웹 보안 논문 주제 2016 | hooni | 2016.11.28 | 0 |
1046 | Develop | [android] 버전 별 앱 알림 설정으로 이동하는 방법 | hooni | 2016.11.28 | 2164 |
1045 | Develop | [ios] FlckrFeed Example App (Swift) | hooni | 2016.11.27 | 1079 |
1044 | Develop | [android] 딜레이를 구현하기 위한 꼼수 | hooni | 2016.11.24 | 941 |
1043 | Develop | [android] How can I place app icon on launcher home screen? | hooni | 2016.11.15 | 1267 |
1042 | Develop | [android] Calling activity function from separate class | hooni | 2016.11.15 | 1161 |