MBProgressHUD
MBProgressHUD copied to clipboard
remove from superview error on iOS 11
- (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
Erm? What's wrong? Works just fine here.
Possible that that the main thread checker is kicking in if you are calling this from a background thread.