应该在presentViewController完成时将self捕获为强大吗?

时间:2016-06-21 12:13:52

标签: ios objective-c objective-c-blocks retain-cycle

在编写presentViewController completion的处理程序闭包时,对self的引用应该是强(默认),弱或无需?

[self presentViewController:actionSheet animated:YES completion:^{
                [self.tableView deselectRowAtIndexPath:indexPath animated:YES];
            }];

请注意,我不会将完成块存储在自己中,但如果presentViewController completion块作为属性存储在Apple实现中会发生什么?

0 个答案:

没有答案