摘要: #import "RootViewController.h" #import "RootView.h" #import "SecondViewController.h" @interface RootViewController ()// 设置代理 @property (nonatomic, strong) RootView *rootView; @end @implementation R... 阅读全文
posted @ 2016-05-29 14:39 雷坤 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 在使用NSMutableDictionary的时候经常会使用setValue forKey与setObject forKey,他们经常是可以交互使用的,代码中经常每一种的使用都有。 1,先看看setValue: forKey:的定义 @interface NSMutableDictionary(NS 阅读全文
posted @ 2016-05-28 09:49 雷坤 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1.首先通过第三方:CocoaPods下载AFNetworking 1.1.先找到要查找的三方库:pod search + AFNetworking 1.2.出来一堆列表页面,选择三方库最新版本命令,例如: pod ‘MBProgressHUD’,’~>0.8’ (:q 返回) 1.3.创建工程,进 阅读全文
posted @ 2016-05-27 20:30 雷坤 阅读(8842) 评论(0) 推荐(0) 编辑
摘要: 第一步:查看自己电脑的Ruby环境: gem sources -l 如果环境已经是taobao镜像了,此时不需要再进行环境修改 如果不是,需要将当前的镜像移除:gem sources —remove https://rubygems.org/ 紧接着使用需要下载taboo的镜像:【gem sourc 阅读全文
posted @ 2016-05-27 19:30 雷坤 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 1.GIF动画 2.菊花动画 3.UIView动画 3.1基础动画 3.2UIView的block动画 3.3UIView的UIViewSpring动画 4.CoreAnimation动画(CALayer动画) Layer的常用属性 阅读全文
posted @ 2016-05-26 21:27 雷坤 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-05-24 17:00 雷坤 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - get请求- (IBAction)getRequest:(id)sender { // 方式一: 使用Block实现 // // 1.创建URL// NSURL *url = [NSURL URLWithString:GET_URL];// // // 2.创建Sess 阅读全文
posted @ 2016-05-23 23:16 雷坤 阅读(2255) 评论(0) 推荐(0) 编辑
摘要: // MARK: - 1.结构体 //1.声明一个结构体 struct Rect { // 声明结构体变量的属性(存储属性) var x:Float var y:Float var width:Float var height:Float // 声明结构体属性,要使用static static va 阅读全文
posted @ 2016-05-23 22:49 雷坤 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 1.在Swift中MARK的用法: //MARK: 2.在Swift中 定义常量,变量 // 定义常量 (使用完第一次就不能修改它的值) let myGender = "男";// 定义变量var carName = "BMW";carName = "Audi";print(carName)// M 阅读全文
posted @ 2016-05-23 18:31 雷坤 阅读(746) 评论(0) 推荐(0) 编辑
摘要: .h文件声明 + (MyHandle *)shareMyHandle; .m文件实现 #import "MyHandle.h" // 声明一个静态变量static MyHandle *myHandel = nil;@implementation MyHandle // 实现方法 + (MyHande 阅读全文
posted @ 2016-05-17 22:18 雷坤 阅读(699) 评论(0) 推荐(0) 编辑