本月博客排行
-
第1名
steven789654 -
第2名
e_e -
第3名
yeluowuhen
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
benladeng5225 - kaizi1992
- wy_19921005
- vipbooks
- arpenker
- zysnba
- fantaxy025025
- e_e
- wallimn
- ganxueyun
- jh108020
- Xeden
- zhanjia
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- xpenxpen
- 喧嚣求静
- lchb139128
- kristy_yy
- javashop
- wangchen.ily
- sunj
- yeluowuhen
- ajinn
- lerf
- lemonhandsome
- chenqisdfx
- xyuma
- flashsing123
- xiaoxinye
- lyndon.lin
- bosschen
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- duanfei
- sgqt
- xiangjie88
- hudiemeng870329
- mft8899
- java_doom
- gaochunhu
- zw7534313
- silverend
最新文章列表
UIWebView中的dataDetectorTypes
如果你希望在浏览页面时,页面上的电话号码显示成链接形式,点击电话号码就拨打电话,这时你就需要用到dataDetectorTypes了。
NSURL *url = [NSURL URLWithString:@"http://2015.iteye.com"];
NSURLRequest *requestObj = [NSURLRequest requestWithURL: ...
从本地或网页加载图片到UIWebView里面
从本地或网页加载图片
从本地加载图片
NSString *boundle = [[NSBundle mainBundle] resourcePath];
[web1 loadHTMLString:[NSString stringWithFormat:@"<img src='http://fei263.blog.163.com/blog/0001.png'/>"] ba ...
自定义UIWebView背景和每段首行缩进
自定义UIWebView背景和每段首行缩进
让UIWebView背景透明的方法,如下。
web_about.backgroundColor = [UIColor clearColor];
web_about.opaque = NO;
关键是在HTML里:
<body style="background-color: transparent">
//可以这样 ...
用UIWebView在当前程序中打开网页
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];