From the course: iOS Lean Controllers: 1 Setup, Persistent Data, and Implementation

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Creating a custom view to add a new shopping list

Creating a custom view to add a new shopping list

- [Instructor] Hi and welcome back. In the last lecture, we integrated our app with core data and in this lecture we are going to create an interface so we can add new shopping list to our application. Let's go ahead and first run our application so you will have a much better idea and when you run your application you will notice that currently it doesn't have any way to add new shopping list to the table or to the storage of record it. Now you can add a plus button on the top right corner or you can add a button that will create some sort of a model or an alert view. What we are going to do is keeping things simple, we're going to add a section header on the top so that you can directly add new shopping lists without losing or going to a different screen. So let's go ahead and do that. The first half for us, is to show that particular section header. Luckily in our table view there is a delegate method that you can write to create that header which is viewForHeaderInSection. View…

Contents