0

コアデータスキームをテストしようとしています。ただし、 と表示されているため、コンテキストを作成できないようですNo visible @interface for 'MyAppDelegate' declares the selector 'managedObjectContext'

オンライン チュートリアルでは、このメソッドはアプリの作成時に自動生成されるようです。ただし、私の場合は存在しません。

これは MyAppDelegate です。

ヘッダ

#import <UIKit/UIKit.h>


@interface MyAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end

.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;
}

iOS 7 を搭載した Xcode 5 でこれを修正するにはどうすればよいですか?

4

1 に答える 1