Develop
2015.02.10 18:01
[ios] 로컬에 있는 html 실행하기
조회 수 1035 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
129 | Develop | [ios] FlckrFeed Example App (Swift) | hooni | 2016.11.27 | 1079 |
128 | Develop | [android] 버전 별 앱 알림 설정으로 이동하는 방법 | hooni | 2016.11.28 | 2164 |
127 | Etc | 웹 보안 논문 주제 2016 | hooni | 2016.11.28 | 0 |
126 | PPT | [ppt] 정보보호관리 발표내용 | hooni | 2016.11.30 | 1082 |
125 | Etc | ISMS 인증기준 – 정보보호대책 (시스템개발보안) | hooni | 2016.12.01 | 1327 |
124 | PPT | [ppt] 정보보호관리 발표내용 #2 | hooni | 2016.12.08 | 1070 |
123 | Develop | XML, JSON, BSON, MSGPACK 장,단점 비교 | hooni | 2017.01.11 | 2246 |
122 | Develop | [ios] 동영상 플레이어 샘플 (for Local File) | hooni | 2017.02.07 | 1077 |
121 | Develop | [ios] 동영상 플레이어 샘플 (for Remote Url) | hooni | 2017.02.07 | 1648 |
120 | System/OS | Enable the Develop Menu in Safari | hooni | 2017.02.07 | 1079 |
119 | System/OS | Enable Safari Hidden Debug Menu in Mac OS X | hooni | 2017.02.07 | 1151 |
118 | System/OS | [android] 초간단 HTTP, POST 전송 샘플 1 | hooni | 2017.02.16 | 3478 |