我在我的Utility模板的flipsideViewController中创建了UITableCellView。如何显示UITableCellView的下一个屏幕点击?
答案 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];
}