ビューを切り替えられるようにしたい。いくつかのコードを書いていますが、うまくいきませんか?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
{
AlleRumViewController *allerum = [[AlleRumViewController alloc] initWithNibName:nil bundle:nil];
if ([[tableData objectAtIndex:indexPath.row] isEqual:@"Alle rum"]) {
[self presentModalViewController:allerum animated:YES];
}
}
どのように切り替えることができるか知っている人はいますか?