macOS 开发 – USB 挂载监听、获取信息
#import "USBListerner.h"
#include
#include
#include
#import
#import "HWRecordModel.h"
@implementation USBListerner
static USBListerner *_instance = nil;
+ (instancetype)shareInstance
{
static dispatch_once_t onceToken ;
dispatch_once(&onceToken, ^{
_instance = [[super allocWithZone:NULL] init] ;
})
共有 0 条评论