[backButton setEnabled:NO];
[backButton setTitle"" forState:UIControlStateNormal];
UIActivityIndicatorView *loadingIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
[loadingIndicator startAnimating];
[loadingIndicator setTag:101];
[loadingIndicator setFrame:CGRectMake(18, 5, 20, 20)];
// RECTLOG(loadingIndicator.frame);
// RECTLOG(backButton.frame);
[backButton addSubview:loadingIndicator];
// network animation on
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
// load data in new thread
[NSThread detachNewThreadSelectorselector(loadDirectory toTarget:self withObject:[mySingleton currentDir]];
[backButton setTitle"" forState:UIControlStateNormal];
UIActivityIndicatorView *loadingIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
[loadingIndicator startAnimating];
[loadingIndicator setTag:101];
[loadingIndicator setFrame:CGRectMake(18, 5, 20, 20)];
// RECTLOG(loadingIndicator.frame);
// RECTLOG(backButton.frame);
[backButton addSubview:loadingIndicator];
// network animation on
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
// load data in new thread
[NSThread detachNewThreadSelectorselector(loadDirectory toTarget:self withObject:[mySingleton currentDir]];