View:
#pragma mark- Life Cycle
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
}
return self;
}
- (instancetype)init {
self = [super init];
if (self) {
}
return self;
}
#pragma mark- Event Response
- (void)buttonAction:(UIButton *)button {
}
#pragma mark- Delegate && DataSource
#pragma mark- Private Methods
#pragma mark- Setter && Getter
#pragma mark- InitSubviews && ConfigData
//初始化界面
- (void)dm_initSubviews {
}
//界面数据配置
- (void)dm_configData {
}
Controller:
#pragma mark- Life Cycle
- (void)viewDidLoad {
[super viewDidLoad];
}
#pragma mark- Request && Response
#pragma mark- Event Response
- (void)buttonAction:(UIButton *)button {
}
#pragma mark- Delegate && DataSource
#pragma mark- Private Methods(一般不要在控制器添加这个方法,因为这个方法属于数据加工,并不是业务逻辑)
#pragma mark- Setter && Getter
#pragma mark- InitSubviews && ConfigData
//初始化界面
- (void)dm_initSubviews {
}
//界面数据配置
- (void)dm_configData {
}