From the course: Advanced iOS Development: Keychain Access

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Read keychain items

Solution: Read keychain items - iOS Tutorial

From the course: Advanced iOS Development: Keychain Access

Start my 1-month free trial

Solution: Read keychain items

(lively music) - [Instructor] Okay, so I hope that challenge was good, I hope you learned a lot, I hope it wasn't frustrating or anything, it is a little bit different. And instead of typing this one out, I thought I'd walk you through it, I think it would be a little bit easier to explain and you see the differences in the code, than watching me type it. So what I did is I added this function call on line 59 of the master view controller. After the user logs in, it calls loaditems. And down here under loaditems, it calls Secure manager fetchitems, and it's going to return an array of Note instances. If it does, with this optional finding, we're going to set it to the notes property in this class, and reload the table. So we need to figure out what this fetchitems does. So fetchitems is where, obviously, we're going to fetch the items, so just like we stored the item, we set the label to note, we're going to do a query for…

Contents