views:

130

answers:

1

Hi,

I have a viewcontroller, and I would like to display a modal view controller with : presentModalViewController when a user finished picking an image.

The modal view controller is working fine when I call it from a button in my main view. But when I call it from didfinishpickingimage callback nothing happens.

Thanks.

A: 

Try

[picker dismissModalViewControllerAnimated:NO];

before

[self presentModalViewController:MY_VIEW_CONTROLLER animated:YES];

Note the animated variable

michael