ios4以后支持
+ (PKClass *)sharedInstance
{
static PKClass *_sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_sharedInstance = [[PKClass alloc] init];
});
return _sharedInstance;
}
+ (PKClass *)sharedInstance
{
static PKClass *_sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_sharedInstance = [[PKClass alloc] init];
});
return _sharedInstance;
}