Não managedObjectContext definido no meu AppDelegate
Estou tentando testar meu esquema de dados principais. No entanto, parece que não consigo criar o contexto porque dizNo visible @interface for 'MyAppDelegate' declares the selector 'managedObjectContext'
.
Nos tutoriais on-line, esse método parece ser gerado automaticamente quando criamos o aplicativo. No entanto, no meu caso, não existe.
Este é o MyAppDelegate:
Cabeçalho
#import <UIKit/UIKit.h>
@interface MyAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
arquivo .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;
}
Como devo corrigir isso no Xcode 5 com o iOS 7?