[cpp]
if ([self respondsToSelector:@selector(request)]) {
NSLog(@"request is exit");
}else
{
NSLog(@"request is exit");
}
if ([self respondsToSelector:@selector(request1)]) {
NSLog(@"request1 is exit");
}else
{
NSLog(@"request1 is not exit");
}
-(void)request
{
__block NBProgressHUD* nBProgres;
dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
dispatch_async(dispatch_get_main_queue(), ^{
});
NSMutableDictionary* postData=[NSMutableDictionary new];
[postData setObject:@"api.doctor.login" forKey:@"apiName"];
[postData setObject:@"sun" forKey:@"check_number,%@"];
[postData setObject:@"123456" forKey:@"password,%@"];
dispatch_async(dispatch_get_main_queue(), ^{
});
});
}
if ([self respondsToSelector:@selector(request)]) {
NSLog(@"request is exit");
}else
{
NSLog(@"request is exit");
}
if ([self respondsToSelector:@selector(request1)]) {
NSLog(@"request1 is exit");
}else
{
NSLog(@"request1 is not exit");
}
-(void)request
{
__block NBProgressHUD* nBProgres;
dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
dispatch_async(dispatch_get_main_queue(), ^{
});
NSMutableDictionary* postData=[NSMutableDictionary new];
[postData setObject:@"api.doctor.login" forKey:@"apiName"];
[postData setObject:@"sun" forKey:@"check_number,%@"];
[postData setObject:@"123456" forKey:@"password,%@"];
dispatch_async(dispatch_get_main_queue(), ^{
});
});
}