jdg / MBProgressHUD

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

MBProgressHUD got a Crash #258

Closed arishanapalli closed 9 years ago

arishanapalli commented 9 years ago

Hi Team,

Since i am using this MBProgressHUD i found a crash when using the in mobile application. -(void)onClick{ [NSThread detachNewThreadSelector:@selector(showLoader) toTarget:self withObject:nil]; //Code something } -(void)showLoader { MBProgressHUD hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; hud.labelText = @"Please Wait"; } -(void)responseDate:(id)response{ NSLog(@"Response %@",response);
[MBProgressHUD hideHUDForView:self.view animated:YES]; / /Do something } // Update to indeterminate indicator [indicator removeFromSuperview]; self.indicator = MB_AUTORELEASE([[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]); [(UIActivityIndicatorView
)indicator startAnimating]; [self addSubview:indicator];

        self.indicator = MB_AUTORELEASE([[UIActivityIndicatorView alloc]

Its happens on occasionally (not on regular internal).

.

matej commented 9 years ago

What is the crash? Please fix the code formatting as well.

arishanapalli commented 9 years ago

Sorry, I did not save the crash log. But the crash is happening rarely. If i am calling it continuously, showLoader method and responseDate method then its crashing. i.e,

-(void)showLoader { MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; hud.labelText = @"Please Wait"; } -(void)responseDate:(id)response{ [MBProgressHUD hideHUDForView:self.view animated:YES]; / /Do something }

project runs on XCode version 6.1.1. ARC

matej commented 9 years ago

I can't see anything wrong with that code.

arishanapalli commented 9 years ago

I had a crash, but its happens very rarely.

iosdevelopersravan commented 8 years ago

App Crashing in this ilne effectView.frame = self.bounds;

Method name "updateForBackgroundStyle"

Please guide me