Recipe 8-1 considers the following three possible image picker callback scenarios:
The user has successfully selected an image.
The user has tapped Cancel (only available on modal presentations).
The user has dismissed the popover that embeds the picker by tapping outside it.
The last two cases are simple. For a modal presentation, dismiss the controller. For a popover, remove any local references holding onto the instance. ...