__weak typeof(self) weakSelf = self;
self.slidePageView.block = ^(NSInteger index){
[weakSelf.scollView setContentOffset:CGPointMake(kWidth * (index - 1), 0) animated:NO];
};
__weak typeof(self) weakSelf = self;
self.slidePageView.block = ^(NSInteger index){
[weakSelf.scollView setContentOffset:CGPointMake(kWidth * (index - 1), 0) animated:NO];
};
本文标题:在bolck中用self的解决方法
本文链接:https://www.haomeiwen.com/subject/uwutattx.html
网友评论