Quote:
Originally Posted by iSDK
I think the better thing to do is set the imageview's image from the method, dismiss the imagepicker, and then perform a void method after 0.5 seconds of the pickerview dismissing which would present the mailcomposer.
|
I don't think that's the problem. Looks like you're using the actual string "UIImagePickerControllerOriginalImage" rather than the defined variable. That is, you want to do:
Code:
// notice the lack of quotes
theimageView.image = [info objectForKey:UIImagePickerControllerOriginalImage];
Two more things--
Definitely use the callback in your original post--not the one from iSDK. The imagePickerController:didFinishPickingImage:editin gInfo callback was deprecated in iOS 3.0.
Also, relying on specific timings to perform functions (like the call a void method 0.5 seconds after...etc), is destined to fail at some point. You can't rely on specific times on different devices, OS versions, and whatever else might be happening on the device at a particular time. Use the various UIViewController methods to notify you that an even finished (eg, viewDidAppear, etc).