You must add a UIActivityIndicatorView at the top of the view hierarchy or it will be rejected using the UIPickerViewController if you do not use the callback after the resize operation and you reject the UIImagePickerController in the callback.
Or you could use HUD progress as SVProgressHUD .
Hope this helps =)
We did a short chat session and decided like this:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ dispatch_async(dispatch_get_main_queue(), ^{ UIView *primaryImage = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,460)]; primaryImage.backgroundColor = [UIColor redColor]; primaryImage.alpha =0.9; UIView *secondaryImage = [[UIView alloc] initWithFrame:CGRectMake(0,0,70,70)]; secondaryImage.center = CGPointMake(160, 240); secondaryImage.backgroundColor = [UIColor blackColor]; secondaryImage.alpha = 0.9; secondaryImage.layer.cornerRadius = 12; [primaryImage addSubview:secondaryImage]; UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 25, 25)]; indicator.center = CGPointMake(35, 35); [indicator setHidesWhenStopped:NO]; [secondaryImage addSubview:indicator]; [indicator startAnimating]; [indicator release]; [secondaryImage release]; [picker.view addSubview:primaryImage]; [primaryImage release]; });
source share