1
- (id)initWithView:(UIView *)view {
// Let's check if the view is nil (this is a common error when using the windw initializer above)
view = nil;
if (!view) {
//主动引起一个崩溃~~~~
[NSException raise:@"MBProgressHUDViewIsNillException"
format:@"The view used in the MBProgressHUD initializer is nil."];
}
return [self initWithFrame:view.bounds];
}
1
1
1
1
1
1
1
1
1