dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
self.pageIndex++;
});
或者
__weak someController *weakSelf = self;
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
weakSelf.pageIndex++;
});
我感到很困惑。哪个是对的?谢谢你。
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
self.pageIndex++;
});
或者
__weak someController *weakSelf = self;
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
weakSelf.pageIndex++;
});
我感到很困惑。哪个是对的?谢谢你。