I am trying to setup MBProgressHUD on a project that uses storyboards, I am getting the errors below when ever I try to compile it. I then get no popup when I click on my button to call this. Any ideas on what i can do to fix this?
Code:
HUD = self.navigationController.view;
[self.navigationController.view addSubview:HUD];
HUD.delegate = self;
HUD.labelText = @"Loading";
[HUD showWhileExecuting:@selector(myTask) onTarget:self withObject:nil animated:YES];
Errors:
DetailViewController.m:162:24:{162:24-162:28}: warning: passing 'DetailViewController *const __strong' to parameter of incompatible type 'id' [3]
DetailViewController.m: warning: Semantic Issue: Incompatible pointer types assigning to 'MBProgressHUD *__strong' from 'UIView *'