I added the ELCimagepicker (https://github.com/Fingertips/ELCImagePickerController) to my project and it works great, allowing the user to select multiple images for the slide show. But when you click "Save", there may be a long delay depending on how many photos have been added.
I am trying to add the UIActivityIndicator identifier when the user clicks βSaveβ, but has problems due to the presented modal view. I can call the method from the activity that ELCimagepicker represents (ELCImagePickerController), and this is activated by the action that handles the image picker view. But whenever I try to add to the view, it does not appear, since the modal is on top of the activity indicator.
I tried using the bringSubviewToFront method, I tried to add code directly to the imagepicker method file with [[self parentViewController] addSubView], but no luck.
Here is the last code I tried: (the indicator is declared in the .h file as a UIActivityIndicator * indicator)
indicator = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
indicator.hidden=false;
[self.navigationController.view addSubview:self.indicator];
[self.navigationController.view bringSubviewToFront:self.indicator];
[indicator startAnimating];
if([delegate respondsToSelector:@selector(elcImagePickerController:showIndicator:)]) {
[delegate performSelector:@selector(elcImagePickerController:showIndicator:) withObject:self withObject:@"test"];
}
- UIActivityIndicator ELCimagepicker , ?
MBProgressHUD, , - , ELCimagepicker,
bool _WebTryThreadLock(bool), 0x42368e0: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
.
.