先写一个GCD
static UserInfoVoModel *userInfoShare = nil; +(instancetype)shareUserInfoVoModel { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ userInfoShare = [[UserInfoVoModel alloc] init]; }); return userInfoShare; }
时间: 2024-10-10 07:17:15