- 博客(12)
- 收藏
- 关注
原创 WKWebView的简单使用-----内存消耗优于UIWebView
#import "ViewController.h" //先引入库文件 #import @interface ViewController () @property (nonatomic, strong) WKWebView *webView; @end @implementation ViewContro
2017-05-25 10:50:08
787
原创 Xcode比较常用的快捷键
1. 文件 command + N: 新文件 command + shift + N: 新项目 command + O: 打开 command + C: 复制 command + V: 粘贴 command + S: 保存 command + option + S: 保存所有文件 command + shift + S: 另存为 command + shift + W: 关闭文件
2016-06-23 09:17:49
386
原创 CSS使用
CSS常用属性 div { font-size: 60px; background-color: red; color: blue; width: 300px; height: 100px; border: 2px blue solid; back
2016-01-19 18:46:40
292
原创 封装网络请求工具类
使用范例: [Downloader downloaderWithURLString:@"http://c.3g.163.com/nc/topicset/android/v4/subscribe/news/all.html" method:@"GET" param:nil passValueBlock:^(id data) { NSLog(@"%@", dat
2016-01-19 18:05:22
387
原创 轮播图封装
在使用的地方调用- (void)bindImageArray:(NSArray *)imageArray;参数为一个存有图片名的数组 如果想实现自动轮播调用- (void)setSpeed:(double)timeInterval;参数为两张图片转换的时间间隔(单位:秒) 在.h文件中 #import @interface CFCircleSlide : UIView //
2016-01-19 17:48:10
554
原创 使用SDWebImage清除图片缓存
使用下面清除缓存的方法需要导入#import "SDImageCache.h" //清除缓存的点击方法 - (void)clearBtnClicked:(UIButton *)sender { NSString *caches = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES
2016-01-19 17:44:35
499
原创 使用webView加载页面,去除页面广告
#import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UIWebView *webView; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLo
2016-01-19 17:28:54
2241
原创 UIWebView的使用
#import "RootViewController.h" @interface RootViewController () @property (nonatomic, strong) UIWebView *webview; @end @implementation RootViewController - (void)viewDidLoad {
2015-12-29 22:11:23
306
原创 ios开发中的小技巧
//程序延迟、闪退、UITextField退出编辑 #import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UITextField *tf; @end @implementation ViewController - (void)vi
2015-12-29 22:02:21
288
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人