Join Simon Allardice for an in-depth discussion in this video Creating and configuring the modal view controller, part of Core Data for iOS and OS X.
So next, I'm going to go into the Storyboard, and we're going to add a new view controller…to this that we'll configure as a at course screen.…So with the Storyboard selected, I am going to open up my Object Library, and I want to…drag on a normal View Controller, not a Table View Controller--we could do that, but normal…will work just fine.…I am going to shrink mine down a bit because I can't really see very much here.…So we have a View Controller, now the question is how does this open up?…Well, we'll need to do it from that first main Table View Controller, because that's…what's going to appear as soon as we open the app.…
So what I am going to do--let's zoom back in to do it--is I am going to add a button…up here on the navigation bar, just a plus button.…So in my Object Library I'll filter down by Bar button Item, that will do, drop it up here,…and I'm going to change that to the Add sign. That will do.…I want this to open up this new View Controller so what I am going to do is Ctrl-drag from…the button--always be careful on what you have selected. It should be highlighted down…
- Understanding Core Data and object persistence frameworks
- Creating a Core Data project
- Exploring data modeling
- Creating entities, attributes, and relationships
- Creating managed objects
- Fetching in Core Data
- Implementing undo and redo support
- Creating a Core Data Cocoa app without code
- Responding to validation issues
- Converting store types
- Preloading default data
Skill Level Intermediate
Q: In the CoursesViewController.m file, I receive a message that the method dismissModalViewControllerAnimated is no longer supported by Apple. Is there a newer method to use?
A: You may have received the warning that a call to the dismissModalViewControllerAnimated: method is now deprecated.
This is a recently deprecated method, so the code _will_ continue to work using that call, but to remove the warning, change the code from:
to the current recommended version:
[self dismissViewControllerAnimated:YES completion:nil];
It should take care of that message.