摘要:
在xib文件中拖入UIWebView。使用代码为UIWebView的滚动控件增加搜索栏:UISearchBar* searchBar=[[[UISearchBar alloc]initWithFrame:CGRectMake(0, -44, 320, 44)]autorelease]; [self.browser.scrollView addSubview:searchBar]; self.topBar=searchBar;[[self.browser scrollView] setContentInset:UIEdgeInsetsMake(44, 0, 0, 0)]; self.bro... 阅读全文