iOSプログラミングに不慣れで、アプリでテーブルビューを実行しようとしていますが、アプリが異常終了し続ける理由に関する確かな情報が見つかりません。これがデリゲートファイルのコードです。エラーの原因となっている間違っていることを誰かに教えてもらえますか?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
listTopics = [NSMutableArray arrayWithCapacity:8];
Topics *topic = [[Topics alloc]init];
topic.topic = @"Movies";
[listTopics addObject:topic];
topic = [[Topics alloc]init];
topic.topic = @"Games";
[listTopics addObject:topic];
topic = [[Topics alloc]init];
topic.topic = @"TV";
[listTopics addObject:topic];
topic = [[Topics alloc]init];
topic.topic = @"Cars";
[listTopics addObject:topic];
topic = [[Topics alloc]init];
topic.topic = @"Actors";
[listTopics addObject:topic];
topic = [[Topics alloc]init];
topic.topic = @"Sports";
[listTopics addObject:topic];
topic = [[Topics alloc]init];
topic.topic = @"Brands";
[listTopics addObject:topic];
topic = [[Topics alloc]init];
topic.topic = @"Music";
[listTopics addObject:topic];
topic = [[Topics alloc]init];
UINavigationController *navigationController = (UINavigationController *)self.window.rootViewController;
TopicsViewController *topicsViewController = [[navigationController viewControllers]objectAtIndex:0];
topicsViewController.listTopics = listTopics;
return YES;
}