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