ビルド時に 2 つのエラーが発生します。これらは AppDelegatem ファイルにあります。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
2 つのエラーがある行:
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
エラー 1:
Receiver type "ViewController" for instance messages is a forward declaration
エラー 2:
Receiver "ViewController" for class messages is a forward declaration
警告のある行:
self.window.rootViewController = self.viewController;
アラート:
Incompatible pointer types assigning to 'UIViewController *' from 'ViewController*'
必要に応じて、ViewControllerm ViewControllerh AppDelegatem のテキスト ファイルをここで見つけることができますhttp://ninjabreakbot.com/stack/
プロジェクトはiOS5用です。私はこれに非常に慣れていません。このような質問に役立つものを教えてください。または、十分に提供されている場合は、ソリューションをご利用ください。
ありがとう!