单击UITableCellView的下一个屏幕?

时间:2010-06-22 11:33:05

标签: objective-c iphone

我在我的Utility模板的flipsideViewController中创建了UITableCellView。如何显示UITableCellView的下一个屏幕点击?

1 个答案:

答案 0 :(得分:0)

为视图创建文件(YourViewController.h,YourViewController.m,YourViewController.xib)。在接口构建器中将YourViewController.xib的类设置为YourViewController。将视图连接到界面构建器中的视图,然后在代码

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    UIViewController *controller;
    controller = [[UIViewController alloc] initWithNibName:@"YourViewController" bundle:nil];
    [self.navigationController pushViewController:controller animated:YES];
    [controller release];

}