You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
745 B
38 lines
745 B
1 year ago
|
//
|
||
|
// SGQRCodeLog.m
|
||
|
// SGQRCodeExample
|
||
|
//
|
||
|
// Created by kingsic on 2022/7/15.
|
||
|
// Copyright © 2022 kingsic. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "SGQRCodeLog.h"
|
||
|
|
||
|
static SGQRCodeLog *singleton = nil;
|
||
|
|
||
|
@implementation SGQRCodeLog
|
||
|
|
||
|
+ (instancetype)sharedQRCodeLog {
|
||
|
static dispatch_once_t onceToken;
|
||
|
dispatch_once(&onceToken, ^{
|
||
|
if (singleton == nil) {
|
||
|
singleton = [[super allocWithZone:NULL] init];
|
||
|
}
|
||
|
});
|
||
|
return singleton;
|
||
|
}
|
||
|
|
||
|
+ (instancetype)allocWithZone:(struct _NSZone *)zone {
|
||
|
return [[self class] sharedQRCodeLog];
|
||
|
}
|
||
|
|
||
|
- (id)copyWithZone:(NSZone *)zone {
|
||
|
return [[self class] sharedQRCodeLog];
|
||
|
}
|
||
|
|
||
|
- (id)mutableCopyWithZone:(NSZone *)zone {
|
||
|
return [[self class] sharedQRCodeLog];
|
||
|
}
|
||
|
|
||
|
@end
|