jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

when MBProgressHUD is added to self.navaigationController.view, it conflicts with self.nanavaigationController presentViewController #310

Closed MonkeyS914 closed 8 years ago

MonkeyS914 commented 8 years ago

the program will break in this part, xcode says the view is nil

matej commented 8 years ago

If the view is nil here, than you're doing something wrong.

MonkeyS914 commented 8 years ago

i just add the method in the rootviewcontroller

}

and use the [self presentViewController:modelViewController animated:YES completion:nil];

in a viewController class which inherits from rootViewController

i try to find the reason but failed. if this isn't a bug, i will try to check my code to find out where the nil comes from

matej commented 8 years ago

I guess self.view is nil when you call that initHUD method.

MonkeyS914 commented 8 years ago

thank you for your instructions