2018年8月1日
摘要: 1.最常用的初始化/** 初始化方法 @param type 类型 @return 对象 */ - (instancetype)initWithType:(EnrollOrderViewControllerType)type { self = [super init]; if(self) { sel 阅读全文
posted @ 2018-08-01 17:21 强者VS弱者 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1. 定义枚举 #import <UIKit/UIKit.h> typedef enum { //以下是枚举成员 TestA = 0, TestB = 1, TestC = 2, TestD = 3 }TestType;//枚举名称 //枚举第二种写法 typedef NS_ENUM(NSInteg 阅读全文
posted @ 2018-08-01 16:50 强者VS弱者 阅读(250) 评论(0) 推荐(0) 编辑