Develop
2015.02.10 18:01
[ios] 로컬에 있는 html 실행하기
조회 수 2191 댓글 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
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
783 | Develop |
[ios] iOS 앱 아이콘을 만드는 유틸
![]() |
hooni | 2015.01.03 | 2327 |
782 | Develop | [ios] UIView 계층구조 | hooni | 2015.01.03 | 2330 |
781 | Develop |
리팩토링 계획안
![]() |
hooni | 2017.05.15 | 2357 |
780 | Develop | [ios] Crashlytics, Fabfic 설치/설정 | hooni | 2016.07.21 | 2367 |
779 | Develop |
[ios] 오브젝티브C→스위프트, 코드 변환 손쉽게
![]() |
hooni | 2015.08.07 | 2381 |
778 | Develop |
[c] 기막힌 정렬 코드 ㅋㄷ
![]() |
hooni | 2015.10.13 | 2397 |
777 | Develop |
[c] 파일명 또는 특정 패턴을 적용
![]() |
hooni | 2016.08.03 | 2412 |
776 | Develop |
'2014 모바일 개발 트렌드' 발표자료입니다.
![]() |
hooni | 2014.10.02 | 2542 |
775 | Develop |
[sh] html 안에 있는 img 다운 받는 쉘 스크립트
![]() |
hooni | 2020.05.26 | 2573 |
774 | Develop |
[c] FSN 온라인 코딩 테스트 (Sorting, Binary Search)
![]() |
hooni | 2015.06.26 | 2574 |
773 | Develop | [ios] 스크린 캡쳐 (전원버튼 + 홈버튼) 호출 알아내기 | hooni | 2014.11.19 | 2605 |
772 | Develop |
[web] 더 빠른 웹을 위한 프로토콜, 'HTTP/2'
![]() |
hooni | 2014.10.20 | 2666 |