
iOS
文章平均质量分 51
CF_first
从事iOS、Android开发
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UIWebView的使用
#import "RootViewController.h" @interface RootViewController () @property (nonatomic, strong) UIWebView *webview; @end @implementation RootViewController - (void)viewDidLoad {原创 2015-12-29 22:11:23 · 307 阅读 · 0 评论 -
视图圆角设置
设置视图圆角原创 2017-05-25 10:03:33 · 347 阅读 · 0 评论 -
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 · 395 阅读 · 0 评论 -
app开发->打电话
app开发->打电话原创 2016-06-16 16:08:19 · 507 阅读 · 0 评论 -
ios开发中的小技巧
//程序延迟、闪退、UITextField退出编辑 #import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UITextField *tf; @end @implementation ViewController - (void)vi原创 2015-12-29 22:02:21 · 290 阅读 · 0 评论 -
使用webView加载页面,去除页面广告
#import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UIWebView *webView; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLo原创 2016-01-19 17:28:54 · 2242 阅读 · 0 评论 -
使用SDWebImage清除图片缓存
使用下面清除缓存的方法需要导入#import "SDImageCache.h" //清除缓存的点击方法 - (void)clearBtnClicked:(UIButton *)sender { NSString *caches = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES原创 2016-01-19 17:44:35 · 501 阅读 · 0 评论 -
轮播图封装
在使用的地方调用- (void)bindImageArray:(NSArray *)imageArray;参数为一个存有图片名的数组 如果想实现自动轮播调用- (void)setSpeed:(double)timeInterval;参数为两张图片转换的时间间隔(单位:秒) 在.h文件中 #import @interface CFCircleSlide : UIView //原创 2016-01-19 17:48:10 · 558 阅读 · 0 评论 -
封装网络请求工具类
使用范例: [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 · 394 阅读 · 0 评论 -
WKWebView的简单使用-----内存消耗优于UIWebView
#import "ViewController.h" //先引入库文件 #import @interface ViewController () @property (nonatomic, strong) WKWebView *webView; @end @implementation ViewContro原创 2017-05-25 10:50:08 · 788 阅读 · 0 评论