No gestionóObjectContext definido en mi AppDelegate
Estoy tratando de probar mi esquema de datos básicos. Sin embargo, parece que no puedo crear el contexto porque diceNo visible @interface for 'MyAppDelegate' declares the selector 'managedObjectContext'
.
En los tutoriales en línea, este método parece ser generado automáticamente cuando creamos la aplicación. Sin embargo, en mi caso no existe.
Esto es MyAppDelegate:
Encabezamiento
#import <UIKit/UIKit.h>
@interface MyAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
archivo .m
#import "MyAppDelegate.h"
@implementation MyAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSManagedObjectContext *context = [self managedObjectContext];
// Override point for customization after application launch.
return YES;
}
¿Cómo debo arreglar esto en Xcode 5 con iOS 7?