在我的应用程序中,我使用不同的 UIButtons 作为 Go Next 类的菜单,这是我的代码
-(IBAction)GoToALevel
{
ALevel *obj = [[ALevel alloc] initWithNibName:@"ALevel" bundle:nil];
[self.navigationController pushViewController:obj animated:YES];
[obj release];
}
-(IBAction)GoToTLevel
{
TLevel *obj = [[TLevel alloc] initWithNibName:@"TLevel" bundle:nil];
[self.navigationController pushViewController:obj animated:YES];
[obj release];
}
-(IBAction)GoToNLevel
{
NLevel *obj = [[NLevel alloc] initWithNibName:@"NLevel" bundle:nil];
[self.navigationController pushViewController:obj animated:YES];
[obj release];
}
-(IBAction)GoToFLevel
{
FLevel *obj = [[FLevel alloc] initWithNibName:@"FLevel" bundle:nil];
[self.navigationController pushViewController:obj animated:YES];
[obj release];
}
现在我把所有这些分类都放在 UITableview 中。但是当我点击 uitableview 的第一部分时,任何人都可以指导我如何获得 Alevel 等等。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
here is problem how to go next class
}