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.

Create and fetch your first notebook

Create and fetch your first notebook - iOS Tutorial

From the course: Learning Realm for iOS App Development

Start my 1-month free trial

Create and fetch your first notebook

- I have already opened up the first begin state of our notes applications that you'll also find in the access files and I'm now going to show you what we are trying to achieve in this video. So, this is the skeleton application that I've been talking about and when we are now clicking or pressing on the plus icon in the top right corner, what we're doing is calling an addNotebook IBAction and there we're creating a UI alert controller that asks the user using a text field for a notebook title and we are offering a cancel action, we are offering a create action and in this create action, the real magic actually happens. So, as soon as I enter a new title, so let's say a new book here, and I create that, we're entering this action here and what we're doing is checking if a title is really available and then we're using a notes manager that we have already implemented and using a Singleton pattern actually, to not have to create an instance of this notes manager and we're then calling…

Contents