Develop
2015.02.10 18:01
[ios] 로컬에 있는 html 실행하기
조회 수 2194 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
147 | Develop |
[c++] 자료구조(링크리스트,스택,큐)와 후위 표기 계산기 샘플 ㅋㅋ
4 ![]() |
hooni | 2013.04.23 | 13893 |
146 | Develop | [c++] 인라인 함수에 대한 설명 | hooni | 2013.04.23 | 8141 |
145 | Develop |
[c++] 인라인 함수 설명과 예제..
![]() |
hooni | 2013.04.23 | 8099 |
144 | Develop |
[c++] 윈도우 프로세스뷰어 분석.. ㅋㅋ
![]() |
hooni | 2013.04.23 | 9820 |
143 | Develop |
[c++] 윈도우 API 정복 예제
![]() |
hooni | 2013.04.23 | 8940 |
142 | Develop |
[c++] 웹폼(webform)전송과 http 파일 업로드 샘플
![]() |
hooni | 2013.04.23 | 34995 |
141 | Develop |
[c++] 압축프로그램(Lite Zip) 샘플
![]() |
hooni | 2013.04.23 | 9361 |
140 | Develop | [c++] 쓰레드(Thread) 객체의 사용 | hooni | 2013.04.23 | 9664 |
139 | Develop | [c++] 소켓 프로그래밍 관련 링크.. (퍼올려고 올린거) | hooni | 2013.04.23 | 7819 |
138 | Develop |
[c++] 바탕화면 테두리에 자석처럼 붙는 스냅효과..
![]() |
hooni | 2013.04.23 | 9816 |
137 | Develop | [c++] 문자열 뒤집기(문자열 거꾸로 출력) | hooni | 2013.04.23 | 18081 |
136 | Develop |
[c++] 마방진 소스코드
![]() |
hooni | 2013.04.23 | 10572 |