IOS -TOWebViewController使用简介
2015-09-22 20:32
447 查看
官方介绍:TOWebViewController 是在线 web 浏览视图控制器,可以用来快速显示 web 内容,自动基于设备的当前 iOS 版本自定义外观,能动态生成所有运行时需要的图像。兼容 iPhone 和 iPad,要求 iOS 5.0 及以上。
下载地址:https://github.com/TimOliver/TOWebViewController
使用TOWebViewController需要引用TOWebViewController.h头文件
在.m文件中添加以下方法即可使用
下载地址:https://github.com/TimOliver/TOWebViewController
使用TOWebViewController需要引用TOWebViewController.h头文件
#import "TOWebViewController.h"
在.m文件中添加以下方法即可使用
//注释部分是使用的UIWebView的方法 // FinancialVC *finanVC =[[FinancialVC alloc]init]; // self.navigationController pushViewController:finanVC animated:YES]; //实例化并设置连接地址 NSString *url = @"ww.apple.com/iphone"; TOWebViewController *toweb = [[TOWebViewController alloc] initWithURL:[NSURL URLWithString:url]]; //设置打开的动画效果,打开效果有如下四中: // 底部向上 UIModalTransitionStyleCoverVertical // 淡入 UIModalTransitionStyleCrossDissolve // 翻转 UIModalTransitionStyleFlipHorizontal // 翻半页 UIModalTransitionStylePartialCurl [toweb setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal]; [self presentViewController:[[UINavigationController alloc] initWithRootViewController:toweb] animated:NO completion:nil];
相关文章推荐
- android拍摄视频的实现
- Android--Service之提高
- unity3d 学习笔记四 skybox(天空盒) light(光源) halo(光晕)
- IOS中延时执行的几种方式的比较和汇总
- IOS学习之 NSDate 8小时误差
- ios多线程开发详解
- Android第三方控件——百度地图的使用
- 在Android中使用IOC框架让代码更清爽
- SoundPool的使用技巧
- iOS经典讲解之多线程应用场景
- Android组件系列----Intent详解
- iOS 测试打包
- iOS-C文件添加到iOS项目中,运行报错
- Android基础入门教程——2.4.7 构建一个可复用的自定义BaseAdapter
- Android传感器的使用开发、简易指南针
- Android工程目录结构
- iOS并发编程指南
- IOS学习之 导航栏
- 《App Transport Security Technote》翻译
- Android读写操作之sdcard的读写操作