Develop
2015.02.10 18:01
[ios] 로컬에 있는 html 실행하기
Views 2181 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 |
---|---|---|---|---|---|
147 | Develop | [js] 한글주소(URL) 인코딩(encode, Encoding), 자바스크립트(JavaScript) | hooni | 2013.04.23 | 12298 |
146 | Develop | [js] 핫키(단축키) 구현방법 | hooni | 2003.04.23 | 9224 |
145 | Develop |
[js] 후리자(영규) 스타일들..
![]() |
hooni | 2013.04.23 | 8340 |
144 | Develop | [js]모바일 웹에서 orientationchange | hooni | 2013.04.23 | 20852 |
143 | Develop | [kotlin] 코틀린 안드로이드 앱 버전/빌드 정보 | hooni | 2020.12.15 | 2806 |
142 | Develop |
[lego] 세그웨이 이것만 볼것.. ㅎㅎ
![]() |
hooni | 2013.04.23 | 36843 |
141 | Develop | [linux] CentOS Apache 웹서버에 HTTPS 적용 | hooni | 2015.10.23 | 2081 |
140 | Develop | [linux] crond 사용법.. ㅋㅋ | hooni | 2013.04.23 | 8270 |
139 | Develop | [linux] tar 명령어 뽀개기.. ㅋㅋ | hooni | 2003.04.23 | 9043 |
138 | Develop | [linux] 날짜나 파일의 내용으로 검색하는 방법(find 명령 사용) | hooni | 2013.04.23 | 9674 |
137 | Develop | [linux] 쉘 스크립트를 이용한 BBS | hooni | 2003.04.23 | 11399 |
136 | Develop |
[linux] 임베디드 리눅스 (embedded linux)
![]() |
hooni | 2013.04.23 | 8262 |