Develop
2015.02.10 18:01
[ios] 로컬에 있는 html 실행하기
조회 수 1127 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
597 | Develop |
[doc] 유료 방송 제어 시스템 (CAS) 발표자료
![]() |
hooni | 2013.04.23 | 8517 |
596 | Develop |
[c++] 웹폼(webform)전송과 http 파일 업로드 샘플
![]() |
hooni | 2013.04.23 | 33100 |
595 | Develop | [c++] 디렉토리 내의 파일 찾기 FindFirstFile() 함수 6 | hooni | 2013.04.23 | 20626 |
594 | Develop |
[c++] 가짜 인증서(하나은행) 프로그램
![]() |
hooni | 2013.04.23 | 10769 |
593 | Develop | [js] 이미지 사이즈를 동적으로 조절.. | hooni | 2013.04.23 | 7484 |
592 | Develop |
[js] 부모창에서 자식창으로 문자열 전달..
![]() |
hooni | 2013.04.23 | 7465 |
591 | Develop |
[c#] 툴바 소스.. 개인적으로 만드는거..
![]() |
hooni | 2013.04.23 | 3304 |
590 | Develop |
[php] 그래프 그리는 프로그램..
![]() |
hooni | 2013.04.23 | 8478 |
589 | Develop | [js] 네이버에서 그림 퍼올 때.. URL Encoding 관련ㅋㅋ | hooni | 2013.04.23 | 7232 |
588 | Develop | [linux] 날짜나 파일의 내용으로 검색하는 방법(find 명령 사용) | hooni | 2013.04.23 | 8141 |
587 | Develop |
[c++] 현승이가 준 메신저 소스.. ㅋㅋ
![]() |
hooni | 2013.04.23 | 8287 |
586 | Develop | [c] 아파치 모듈(Apache Module) 만들기 | hooni | 2013.04.23 | 8615 |