I want to show a warning when the user shoots the picture and clicks on the usage button. It's strange that when we shoot a photo in iPhone OS 2.0, it shows a loading message, but in iPhone OS 3.0, it does not show anything, how can I show a warning that there is no way to force the image plotting process is? Sometimes in my app it is slow and sometimes it happens faster so that I do not understand it yet. Does anyone know about this? In your method "imagePickerController" you want to display a UIAlertView.
UIAlertView will be displayed for the period of time when it takes the photo to save it from the album.
- (Zero) Image Picture Controller: (UIImagePickerController *) Picker didFinishPickingImage: (UIImage *) Selected Image EditingInfo: (NSDictionary *) EditingInfo {if (picker.sourceType == UIImagePickerControllerSourceTypeCamera) {saveImage = [[UIAlertView alloc] initWithTitle: @ "Saving Image ..." Message: Zero Rep: Auto CancelTotintitle: Any other Button Titles: Zero]; UIActivityIndicatorView * WaitView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle: UIActivityIndicatorViewStyleWhiteLarge] Autorelase]; WaitView.frame = CGRectMake (120, 50, 40, 40); [Waiting start-up startup]; [SaveImage addSubview: waitView]; [Save show]; [Save image release]; UIImageWriteToSavedPhotosAlbum (Selected Image, Self, @Selector (Image: Error saving didFinish: ReferenceInfo :), zero); } [Automatically deleted Model Vieux controlling permission: Yes]; } - (zero) Image: (UIImage *) Image FinishedSavingWithError: (NSError *) Error reference: (zero *) contextInfo {// was an error? If (error == NULL) {NSLog (@ "Image protected"); [Cleit button indices rejected with SaveImage: 0 animated: yes]; } Else {// error occurred}}
No comments:
Post a Comment