Handling Delegate Callbacks
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. ...
Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.