我目前正在編寫iOS應用程序,並且不喜歡UIImagePickerController消失的速度。在iOS中通過UIImagePickerController加載UIActivityIndicator
我打電話給[self dismissModalViewControllerAnimated:YES];
即時我在- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info;
裏面,然而imagePicker需要一些時間才能消失,在一些照片上足夠長,以至於應用程序看起來會凍結給用戶。
我想到的一個解決方案就是拋出一個UIImagePickerController的UIActivityIndicator infront,但我還沒有想出一種方法來實現這一點。
謝謝!
編輯:關於如何更快地保存UIImages的任何提示也會有幫助,我相信。比如一種非同步的方式。