+(instancetype)sharedManager{
static PhotoMeanager *instance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken,^{
instance = [[PhotoMeanager alloc]init];
});
return instance;
}
+(instancetype)sharedManager{
static PhotoMeanager *instance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken,^{
instance = [[PhotoMeanager alloc]init];
});
return instance;
}
本文标题:IOS单例
本文链接:https://www.haomeiwen.com/subject/vxzpsttx.html
网友评论