masonry里面自动布局使用的.top().bottom();就是链式语法
- (BaseViewController *(^)())stepOne;
- (BaseViewController *(^)())stepTwo;
实现方法:
(BaseViewController *(^)())stepOne
{
return ^(){
NSLog(@"do");
return self;
};
}(BaseViewController *(^)())stepTwo
{
return ^(){
NSLog(@"do 2");
return self;
};
}
调用方法如下:
self.stepOne().stepOne();