NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

DAY 43

Project 10, part two


Today we’re going to be doing something so simple, yet so fundamentally important to the app development experience: we’re going to be adding user’s photos to our app.

I know, it’s simple, right? And UIKit does make it simple. But as you’ll see, adding user photos to your app does something important: it makes your app theirs. They have customized it with the faces and places they love, and it brings the whole thing to life.

With this power comes an important proviso: when they allow us to read their private life like that, you need to take that privacy permission to heart and live by it. Some other platforms play fast and loose with user privacy, but in the iOS world you’d do well to live by the words of Valerie Plame: “Privacy is precious – I think privacy is the last true luxury. To be able to live your life as you choose without having everyone comment on it or know about.”

So, don’t share it outside the app without the user’s express permission, don’t put it on your server, and don’t even send off analytics data unless its homogenized and anonymized. Please be a good iOS citizen!

Today you have three topics to work through, and you’ll learn about UIImagePickerController, NSObject, and more.

Need help? Tweet me @twostraws!

 

Hacking with Swift is sponsored by Instabug

SPONSORED Catch bugs as soon as they happen and know exactly why a crash occurred. Instabug's SDK grabs all the logs they need to fix bugs, crashes and performance issues in minutes instead of days. Get screenshots, device details, network logs, repro steps, and tons of other critical insights needed to resolve issues and prioritize product backlogs straight from your dashboard. It only takes a minute to integrate!

Get started now

Sponsor Hacking with Swift and reach the world's largest Swift community!

100 Days of Swift


The 100 Days of Swift is a free collection of videos, tutorials, tests, and more to help you learn Swift faster. Click here to learn more, or watch the video below.

Back to 100 Days of Swift

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.