Develop
2015.02.10 18:01
[ios] 로컬에 있는 html 실행하기
조회 수 2190 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
397 | Develop |
[c] 단어 입력/수정 프로그램 소스
![]() |
hooni | 2003.04.23 | 8176 |
396 | Develop |
[ios] 동영상 플레이어 샘플 (for Remote Url)
![]() |
hooni | 2017.02.07 | 8172 |
395 | Develop |
[c] 구조체/파일 입출력 프로그램
![]() |
hooni | 2003.04.23 | 8169 |
394 | Develop | [js] 자바스크립트 메뉴얼 사이트.. ㅋㅋ | hooni | 2013.04.23 | 8167 |
393 | Develop | [c] 라인수 입력받아 마름모꼴 출력하기.. | hooni | 2003.04.23 | 8165 |
392 | Develop | [C++] 18일차 과제물, String 클래스 디자인 【 C++ 문제 】 | hooni | 2013.04.23 | 8161 |
391 | Develop |
[c] 테트리스3D (Tetris 3D)
![]() |
hooni | 2013.04.23 | 8152 |
390 | Develop |
[c++] mfc로 만든 부엌 수납 시스템(2D기반 설계)
![]() |
hooni | 2013.04.23 | 8149 |
389 | Develop |
[c] 단기과정[01/14] 피보나치, 파스칼.. 파일입출력
![]() |
hooni | 2003.04.23 | 8147 |
388 | Develop |
[pdf] C 국제 표준 문서
![]() |
hooni | 2013.04.23 | 8145 |
387 | Develop |
[c] 패스워드 암호화/사용자 정보 보기
![]() |
hooni | 2003.04.23 | 8142 |
386 | Develop | [c++] 인라인 함수에 대한 설명 | hooni | 2013.04.23 | 8141 |