mrackwitz / MRProgress

Collection of iOS drop-in components to visualize progress
MIT License
2.55k stars 305 forks source link

Flicker when adding Progress Dialog to a UIViewController that holds a UIWebview #82

Open gconno opened 9 years ago

gconno commented 9 years ago

I've been witnessing a strange behaviour when displaying the MRProgress on a view that has a UIWebvView in it. It appears to be extremely large in size, its position is off center, and it flickers. I add the MRProgress using:

[MRProgressOverlayView showOverlayAddedTo:self.view title:@"Please wait..." mode:MRProgressOverlayViewModeIndeterminateSmall animated:YES];
mrackwitz commented 9 years ago

Can you add the overlay to a superview of the web view instead? If there is no such view with the same dimensions, you could box the web view in another UIView.

gconno commented 9 years ago

I tried both suggestions. Same result. Adding the overlay to self.view.superview resulted in no MRProgressOverlayView appearing.

Boxing the web view in another UIView resulted in the original strange behaviour.