From the course: Advanced iOS Development: Keychain Access

Unlock the full course today

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

Update keychain preparation

Update keychain preparation - iOS Tutorial

From the course: Advanced iOS Development: Keychain Access

Start my 1-month free trial

Update keychain preparation

- [Instructor] Okay, so we've done some great stuff. We've added items to the keychain and we've fetched them from the keychain. Now we're going to look at how to update items in the keychain. It's kind of a combination of the two. We're going to specify one query dictionary that specifies the items, how we find them to update. So we're going to specify what to look for. In our case it'll be generic password and the account set to username. And then we're also going to specify another dictionary with the data to update. So it'll be kind of like this dictionary where we stored the password. But it'll only be the password in this case. Now the good news is you're already familiar with that. So it should feel pretty comfortable. There's not really any bad news but you do have to be careful because when you're specifying the items to match on, you can update multiple items. So you want to be as specific as possible or you might…

Contents