![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 262 阅读 · 0 评论 -
视图圆角设置
设置视图圆角原创 2017-05-25 10:03:33 · 264 阅读 · 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 · 318 阅读 · 0 评论 -
app开发->打电话
app开发->打电话原创 2016-06-16 16:08:19 · 420 阅读 · 0 评论 -
ios开发中的小技巧
//程序延迟、闪退、UITextField退出编辑#import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UITextField *tf; @end @implementation ViewController - (void)vi原创 2015-12-29 22:02:21 · 241 阅读 · 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 · 2146 阅读 · 0 评论 -
使用SDWebImage清除图片缓存
使用下面清除缓存的方法需要导入#import "SDImageCache.h"//清除缓存的点击方法- (void)clearBtnClicked:(UIButton *)sender{ NSString *caches = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES原创 2016-01-19 17:44:35 · 410 阅读 · 0 评论 -
轮播图封装
在使用的地方调用- (void)bindImageArray:(NSArray *)imageArray;参数为一个存有图片名的数组如果想实现自动轮播调用- (void)setSpeed:(double)timeInterval;参数为两张图片转换的时间间隔(单位:秒)在.h文件中#import @interface CFCircleSlide : UIView//原创 2016-01-19 17:48:10 · 473 阅读 · 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 · 307 阅读 · 0 评论 -
WKWebView的简单使用-----内存消耗优于UIWebView
#import "ViewController.h"//先引入库文件#import @interface ViewController ()@property (nonatomic,strong) WKWebView *webView;@end@implementation ViewContro原创 2017-05-25 10:50:08 · 694 阅读 · 0 评论