CGRect bounds = CGRectMake(10, 90, 320, 180);//[[UIScreen mainScreen] applicationFrame];
UIWebView *localwebView = [[UIWebView alloc] initWithFrame: bounds ];
[self.view addSubview:localwebView];
NSString *path = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
localwebView.scalesPageToFit = YES;
[localwebView loadRequest:request];
No comments:
Post a Comment