1
나는 목표 - CI에 초보자가 (예를 들어 index.html을)의 UIWebView에, 내가,UIWebView에서 로컬 HTML 파일을로드하는 방법은 무엇입니까?
-(void)viewWillAppear:(BOOL)animated
{
NSLog(@"willAppear");
UIWebView *myWebView=[[UIWebView alloc]initWithFrame:CGRectMake(20, 20, 400, 400)];
NSURL *url = [[NSURL alloc] initWithString:@"http://www.google.co.in/"];
[myWebView loadRequest:[NSURLRequest requestWithURL:url]];
myWebView.scalesPageToFit = YES;
[self.view addSubview:myWebView];
}
을 같은 URL을로드 할 수 난을로드 할 수있는 로컬 HTML 파일을로드하는 방법을 알고 싶어 해요 URL을로드하는 대신 로컬 html 파일을 사용합니다. 어떻게해야합니까?.
는 또한 내가 대리자 메서드를
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
navigationType를 호출 할 : called.Any 안내되지 않는 (UIWebViewNavigationType) navigationType이 깔끔하게입니다 appreciated.Thanks.