沧海一粟

----not just a programmer

导航

2013年10月30日 #

ios学习之UIWebView网页视图调整

摘要: //先来一个可行的小Demo程序:结合searchBar的google搜索#import @interface ViewController : UIViewController{ UIWebView *webView; UISearchBar *searchBar;} @end -(void)loadView{ [super loadView]; CGRect bounds = [[UIScreenmainScreen] applicationFrame]; //UISearchBar searchBar ... 阅读全文

posted @ 2013-10-30 17:07 沧海一粟-啊添 阅读(8913) 评论(0) 推荐(1) 编辑

ios学习之UIWebView网页视图

摘要: 转载于爱德凡的百度空间,地址:http://hi.baidu.com/aidfan/item/34a720866b33cbcdef083d37UIWebView 使用详解一.UIWebView加载的时候通常有几种方法1.loadRequest:2.loadHTMLString:stringbaseURL:3.loadData:MIMEType:textEncodingName:baseURL:其中baseURL 是指基准的url 是一个绝对的地址,程序要用到的其他资源就可以根据这个基准地址进行查找而不用再次定位到绝对地址;二.UIWebView中几个重要的函数1.- (void)webView 阅读全文

posted @ 2013-10-30 15:38 沧海一粟-啊添 阅读(1840) 评论(0) 推荐(0) 编辑