@interface A : UIView{
NSInteger z_num;
}
+ (void)getNum;
@end
@implementation A
+ (void)getNum{
__weak typeof(self) weakSelf = self;
[[SingletonClass shareInstance] getNum:^(NSInteger status, NSString *num) {
__strong typeof(weakSelf) strongSelf = weakSelf;
if (strongSelf) {
if (status == NET_OK) {
strongSelf->z_num = [num integerValue]; //error:Member reference base type 'Class' is not a structure or union
}
}
}];
}
@interface A : UIView{
NSInteger z_num;
}
+