Photo Assets and PHAsset Class

Photos and videos are, at their base level, model objects. Think back to our old friend, the Model-View-Controller, introduced back in Model-View-Controller. A well-designed model object should be a reusable piece of information that can be accessed from many different controller objects without any dependencies tying it to one specific application or project.

Model objects contain data, and they provide access to and implement logic on data. Photos and videos are just sets of data that we store on our phone that can be accessed and modified by many different applications. Our photo model objects are also read-only and thread safe, so no worrying about another application coming in and changing our photos out ...

Get iOS 8 SDK Development, 2nd 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.