From the course: Learning Realm for iOS App Development

Unlock the full course today

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

Retrieve and update objects

Retrieve and update objects - iOS Tutorial

From the course: Learning Realm for iOS App Development

Start my 1-month free trial

Retrieve and update objects

- [Lecturer] Back in our Realm Project demo, we are now going to focus on getting objects back from the database and as you can see, I've made a little modification here. I have added a comment around all of the code that we previously wrote to add a note to our database and the only thing left is our definition of our realm to get a realm object and I'm now going to run this really quickly to again, open up my realm browser so we can see how many items we actually have in our database so just as a quick reminder, I can check what directory I have to use by using PO in the console as soon as I set a break point and start the debugging and now I'm entering NS Home Directory. I am getting the result now. I can just copy that, go into my finder, press command shift g to open up a directory and here we are in our directory for our current application and in documents we have our default realm that I'm going to open up right now. So here it is. We have three elements. We have my first…

Contents