MVVMDemo icon indicating copy to clipboard operation
MVVMDemo copied to clipboard

TableViewDelegate的点击事件

Open yinanwang1 opened this issue 8 years ago • 3 comments

如果在TableViewDelegate的didSelect方法中,需要进行Push的操作,需要怎么执行?

yinanwang1 avatar May 26 '16 12:05 yinanwang1

可以在TableViewDelegate类中设置block回调到ViewController

coderyi avatar May 26 '16 12:05 coderyi

didSelect的一个Block,如果cell上有3个buttons,这个3个Button的target,是不是也需要使用block的,那么TableViewDelegate中的block会有很多个。 是不是这样的?

yinanwang1 avatar May 30 '16 02:05 yinanwang1

一个block 可以传出不同的type 来,没必要多个block

coderyi avatar May 30 '16 04:05 coderyi