WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

Day 74 Challenge - Solved

Forums > 100 Days of Swift

Anyone having a LOADS of trouble with this project ( challange for Milestone: Projects 19-21) ?


I am stuck on how to save the texts in the detailViewcontroller to userdefault, and pull that same text from the main VC and put it in a table view.

Anyone has completed this and wants to share the Github link for it?

Cheers guys.


Same trouble here. Would appreciate any help.


This is one area where UserDefaults is not optimal but for purposes of the challenge is ok. Basically you need to be saving array of Note classes each time you write or edit note.

This is one area where classes will work much better, because you can send just the reference to detail view controller, where you will display the text and possibly edit it.

I would save data either after each edit (meaning encoding the whole array and saving it into user defaults) or when user exits the app. There are special methods inside of AppDelegate to help with this.


I actually found an awesome tutorial online and helped me solve this. Completion closure save lives.. haha


Hello! Can you share the tutorial link?


Hacking with Swift is sponsored by Emerge

SPONSORED Optimize your app’s startup time, binary size, and overall performance using Emerge’s advanced app optimization and monitoring tools. Reliably measure app size, speed up your app's startup time with Emerge's Launch Booster, and much more. Emerge is actively used by many of the top mobile development teams in the world.

Find out more

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.