Creating Core Data Project

Send Snippet To: Save this snippet to Code Collector Pro -- view all haxis's snippets
language: Other
license: Other

Code for Snippet:

                
1) Open Xcode and create a new project with the Master-Detail Application template.
 
2)Select iPhone as the device family and make sure Use Storyboards, Use Core Data, and Use Automatic Reference Counting are selected. Select Next, then Create.
 
3)Remove "Move to Trash"
FBCDMasterViewController.h
FBCDMasterViewController.m
FBCDDetailViewController.h
FBCDDetailViewController.m
 
4)Create Objective-C class FBCDMasterViewController
 
5).h
@property (nonatomic,strong) NSManagedObjectContext* managedObjectContext;
.m
@synthesize managedObjectContext;
 
6) Remove the DetailView in StoryBoard
comments powered by Disqus

Info

Tags: Coredata

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 566
Date Added: 2012-11-20 13:59:34
Last Modified: 0000-00-00 00:00:00

Web Analytics