Develop
2015.02.10 18:01
[ios] 로컬에 있는 html 실행하기
조회 수 1144 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
337 | Develop |
[doc] C++언어 문법 설명서
![]() |
hooni | 2013.04.23 | 6194 |
336 | Develop |
[doc] C언어 문법 설명서
![]() |
hooni | 2013.04.23 | 6459 |
335 | Develop |
[pdf] C 국제 표준 문서
![]() |
hooni | 2013.04.23 | 6778 |
334 | Develop |
[pdf] C++ 국제 표준 문서
![]() |
hooni | 2013.04.23 | 7320 |
333 | Develop |
[c][cpp] mfc, win32api, 예제 소스 대박 모음~
![]() |
hooni | 2013.04.23 | 8479 |
332 | Develop |
[c] 테트리스3D (Tetris 3D)
![]() |
hooni | 2013.04.23 | 7116 |
331 | Develop |
[c] 마우스 따라다니는 고양이 - 네코95 (WinAPI)
![]() |
hooni | 2013.04.23 | 7964 |
330 | Develop |
[c][php] 프로세스정보와 메모리 정보 웹으로 출력하는거..
![]() |
hooni | 2013.04.23 | 6345 |
329 | Develop | [php] 자주 쓰는 PHP 함수와 예제 | hooni | 2013.04.23 | 9814 |
328 | Develop | [linux] crond 사용법.. ㅋㅋ | hooni | 2013.04.23 | 7277 |
327 | Develop |
[php] 서버 이상 체크 해서 문자보내는 샘플소스..
![]() |
hooni | 2013.04.23 | 6729 |
326 | Develop |
[java] 파일 라인수 계산하는 프로그램 (하위 디렉토리까지..)
![]() |
hooni | 2013.04.23 | 7664 |