1、+(id)shareInstance{
static ClassA *A=nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken,^{
A=[[self alloc] init];
return A;
});
}