目的:防止循環引用
ARC中使用block模闆 __weak id weakself = self ;
block^{
__strong id strongself = weakself;
if (strongself)
{
// 填寫代碼
}
};
目的:防止循環引用
ARC中使用block模闆 __weak id weakself = self ;
block^{
__strong id strongself = weakself;
if (strongself)
{
// 填寫代碼
}
};