- 浏览: 438755 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (538)
- C/C++ Primer (69)
- Objective-C Primer (102)
- Python Primer (19)
- JavaScript Primer (1)
- Java Primer (37)
- PHP Primer (17)
- 泛 Linux (37)
- Shell Script (21)
- APUE (21)
- UNP__1&2 (19)
- NetWork (7)
- Oracle周边 (38)
- Mysql里边 (6)
- Windows技 (9)
- 简单算法 & 数据结构 (14)
- 设计模式 (6)
- GTK历程 (12)
- 工具使用 (25)
- 杂事 (23)
- 一些概念 (17)
- Web方面 (10)
- myCodeTools (9)
- ^未 竟$ (13)
- 硬件通信 (2)
- Games (1)
最新评论
http://hi.baidu.com/wei_1123/item/a11f65df35ca4ee63cc2cbd8
http://unmi.cc/uiwebview-replace-uitextview-line-height
图片URL:
http://gaohaijun.blog.163.com/blog/static/176698271201110133338742/
一些JS的操作:
http://www.cnblogs.com/superhappy/archive/2012/12/04/2801929.html
self.saying = [[UIWebView alloc] initWithFrame:CGRectMake(6, 84, 314, 320)];
self.saying.opaque = NO;
self.saying.backgroundColor = [UIColor clearColor];
self.saying.dataDetectorTypes = UIDataDetectorTypeNone;
[self addSubview:self.saying];
// remove shadow view when drag web view
for (UIView *subView in [self.saying subviews])
{
if ([subView isKindOfClass:[UIScrollView class]])
{
for (UIView *shadowView in [subView subviews])
{
if ([shadowView isKindOfClass:[UIImageView class]])
{ shadowView.hidden = YES; }
}
}
}
//backgroud-color:transparent 结合最前面的两行代码指定的属性就真正使得 WebView 的背景透明了
//font:16px/18px 就是设置字体大小为 16px, 行间距为 18px,也可用 line-height: 18px 单独设置行间距
//Custom-Font-Name 就是前面在项目中加上的字体文件所对应的字体名称了
// margin:0;background-color:transparent;font:20px/26px Custom-Font-Name
NSString *css =
@"<style>"
"body{margin:0;background-color:transparent;color:#ffffff;text-indent:40px;font:20px/30px Custom-Font-Name}"
"p{margin:0px;padding:0;}"
"</style>";
NSString *htmlString = [css stringByAppendingFormat:@"%@", text];
[self.saying loadHTMLString:htmlString baseURL:nil];
http://unmi.cc/uiwebview-replace-uitextview-line-height
图片URL:
http://gaohaijun.blog.163.com/blog/static/176698271201110133338742/
一些JS的操作:
http://www.cnblogs.com/superhappy/archive/2012/12/04/2801929.html
self.saying = [[UIWebView alloc] initWithFrame:CGRectMake(6, 84, 314, 320)];
self.saying.opaque = NO;
self.saying.backgroundColor = [UIColor clearColor];
self.saying.dataDetectorTypes = UIDataDetectorTypeNone;
[self addSubview:self.saying];
// remove shadow view when drag web view
for (UIView *subView in [self.saying subviews])
{
if ([subView isKindOfClass:[UIScrollView class]])
{
for (UIView *shadowView in [subView subviews])
{
if ([shadowView isKindOfClass:[UIImageView class]])
{ shadowView.hidden = YES; }
}
}
}
//backgroud-color:transparent 结合最前面的两行代码指定的属性就真正使得 WebView 的背景透明了
//font:16px/18px 就是设置字体大小为 16px, 行间距为 18px,也可用 line-height: 18px 单独设置行间距
//Custom-Font-Name 就是前面在项目中加上的字体文件所对应的字体名称了
// margin:0;background-color:transparent;font:20px/26px Custom-Font-Name
NSString *css =
@"<style>"
"body{margin:0;background-color:transparent;color:#ffffff;text-indent:40px;font:20px/30px Custom-Font-Name}"
"p{margin:0px;padding:0;}"
"</style>";
NSString *htmlString = [css stringByAppendingFormat:@"%@", text];
[self.saying loadHTMLString:htmlString baseURL:nil];
发表评论
-
float equal
2013-05-23 18:21 775- (BOOL)floatA:(float)f1 equalB ... -
Coding Guidelines for Cocoa
2013-05-17 16:53 629参考: https://developer.apple.com ... -
Cell
2013-05-16 14:32 745- (void)tableView:(UITableView ... -
Object-C编程规范
2013-05-15 10:49 6911.参考苹果的文档 “Coding Guidelines fo ... -
MacPorts
2013-02-28 18:12 568http://blog.csdn.net/lynjay/art ... -
KVC/KVO 监听对象属性变化
2013-01-10 23:09 7349http://blog.csdn.net/a6472953/a ... -
ios Associative 扩展属性
2013-01-08 16:45 1491@dynamic和@synthesize http://blo ... -
ObjC Dynamic
2013-01-08 15:21 738原文:http://www.onevcat.com/2012/ ... -
UITableView & UITextField
2012-11-08 00:35 790keyboard event ---------------- ... -
Device orientation
2012-10-15 16:20 693- (BOOL)shouldAutorotateToInter ... -
system notification
2012-10-12 15:22 588for UIApplication These notifi ... -
NSZombies
2012-08-09 08:51 626NSZombies搞定EXC_BAD_ACCESS http: ... -
Quartz 2D Programming Guide
2012-07-17 00:51 552Quartz 2D 内容不少啊 Graphics Trans ... -
NSCache
2012-07-12 14:25 710http://thenewself.blog.163.com/ ... -
NSCoding
2012-07-12 13:39 914@protocol NSCoding - (void ... -
分析 crash 报告的方法
2012-07-12 01:15 547http://blog.csdn.net/toss156/ar ... -
Multi-touch
2012-07-11 23:33 687智能与灵活与工作量>_< http://www.o ... -
iOS的多核编程和内存管理
2012-07-11 18:14 678http://anxonli.iteye.com/blog/1 ... -
NSCopying
2012-07-10 15:54 481http://www.apple.com.cn/develop ... -
NSTimeZone
2012-07-10 14:42 390http://developer.apple.com/libr ...
相关推荐
IOS开发中因为引入cocos2dx,导致代码审核不通过无法提交( Apple will stop accepting submissions of apps that use UIWebView APIs )。该问题的解决方案有两种:1)升级Cocos2dx的版本,在查看Cocoas官网及Cocoas...
之前提到UIWebView使用一个UIScrollView对象来关联web页面的内容,通过UIWebView的scrollView属性即可获得该对象,默认情况下网页长度超出设备视口长度后页面会滚动,用户使用手指滚动页面到页面边距并放开手指后...
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Unity IOS审核被拒,解决办法,去网上看了好多帖子,...
UIWebView+html+css,实现UIWebView中可点击链接,并且可显示gif动画效果
UIWebView与JS交互小例子,其中涉及APP向JS提交信息,和JS提交信息给App
使用UIWebView和JS进行交互,可以OC操作js,也可以JS对OC进行交互
UIWebView和js交互 里边自己写了个H5方便大家理解
UIWebView原生与H5交互,pre;confirm;等包含三个H5页面跳转的交互demo
这是iPhone开发之UIWebView示例程序,具体参考: http://blog.csdn.net/htttw/article/details/7888557
IOS自定义请求uiwebview的loading框 支持文字和转圈特效同时存在 动态显示 调用方便
在UIWebView中加载本地图片,http://blog.csdn.net/zhangao0086/article/details/7262192
iOS UIWebView URL拦截.pdf
UIWebView实现图文混排
UIWebview使用中的js交互简单的简析 欢迎大家指点 共同学习
(OC)(UIWebView)新闻详情
完美的webView,不懂UIwebView的可以看看
一款UIWebView的加载进度条,基于CAShapeLayer,有两种显示风格:纯颜色显示和渐变色显示
两步实现iOS UIWebView 通过 cookie 完成自动登录。
该demo实现了在iOS的UIWebView下,OC与JS方法之间的相互调用