weakself strongself

168 阅读1分钟

__weak typeof(self) weakself = self; __strong typeof(weakself) strongself = self;

typeof()根据括号内对象自动识别该对象类型。