Showing an error like this some problem with the completion block return type.
-(NSDictionary*)makeWebServiceCallAmmendments
{
__block NSDictionary*DicWebResponsePersonel;
NSMutableDictionary *DictAppPatData=[PatientData sharedManager:nil];
NSString*StrUrlContact=[NSString stringWithFormat:@"%@patient/getPatientDetails?pid=%@&type=ammendments",MainUrlUPDATEServer,[DictAppPatData objectForKey:@"pid"]];
NSURL*url=[NSURL URLWithString:StrUrlContact];
MBProgressHUD *hud= [[MBProgressHUD alloc] initWithView:self.view];
[self.view addSubview:hud];
hud.labelText = @"Please wait...";
[hud showAnimated:YES whileExecutingBlock:^(void)
{
DicWebResponsePersonel=[[SRUtility sharedManager]makeWebServicecallForGetmethod:url];
} completionBlock:^(void)
{
return DicWebResponsePersonel;
}];
}
in completionBlock showing error like incompatible block pointer types sending ‘nsdictionary’(^)(void)’to parameter of type ‘MBProgressHUDCompletionBlock’(aka ‘void(^)()’)