内部にTableViewを含むXIBをロードするストーリーボードがあります。
ユーザーが TableView から行を選択すると、次のメソッド pushViewController を使用して新しい XIB をロードする必要があります。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// Navigation logic may go here. Create and push another view controller.
[tableView deselectRowAtIndexPath:indexPath animated:YES];
RecipeDetailViewController *recipeDetailViewController = [[RecipeDetailViewController alloc] init];
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
NSString *str = cell.textLabel.text;
recipeDetailViewController.navTitle = str;
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:recipeDetailViewController animated:YES];
}
ロードされた新しい XIB は、次のビューを表示する必要があります (内部にボタンがあります)。
代わりに、以下のような黒いビューをロードします。
ビューがビューコントローラーに接続されているかどうかを確認しました。私の観点からは、すべて問題ありません。IB では、ビューはファイルの所有者に接続されています。