iphone webView上手动编辑HTML网页~~

-(void)viewDidLoad{
	NSString *htmlContent = @"
"; NSMutableString *htmlPage = [NSMutableString new]; [htmlPage appendString:htmlContent]; [htmlContent release]; [ htmlPage appendString:@"视频监控信息统计"]; [ htmlPage appendString:@"

"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@"节目名"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@"系统层"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@"视频层"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@"音频层"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@"娱乐"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@"0"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@"2310"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@"0"]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [ htmlPage appendString:@""]; [webView loadHTMLString:htmlPage baseURL:nil]; [htmlPage release]; [super viewDidLoad]; }


         int height = webView.frame.size.height;
	
	NSString *html = [NSString stringWithFormat:@"
",height]; [webView loadHTMLString:html baseURL:nil]; UIScrollView *scrollView = [webView.subviews objectAtIndex:0]; if (scrollView && [scrollView isKindOfClass:[UIScrollView class]]) { scrollView.pagingEnabled = YES;


你可能感兴趣的:(iPhone,development)