MBProgressHUD icon indicating copy to clipboard operation
MBProgressHUD copied to clipboard

remove from superview error on iOS 11

Open blephusky opened this issue 9 years ago • 2 comments

  • (MBProgressHUD *)HUDForView:(UIView *)view { NSEnumerator *subviewsEnum = [view.subviews reverseObjectEnumerator]; for (UIView *subview in subviewsEnum) { if ([subview isKindOfClass:self]) { return (MBProgressHUD *)subview; } } return nil; }

this method can not get subviews

blephusky avatar Jun 09 '17 08:06 blephusky

Erm? What's wrong? Works just fine here.

matej avatar Nov 12 '17 11:11 matej

Possible that that the main thread checker is kicking in if you are calling this from a background thread.

matej avatar Nov 12 '17 15:11 matej