我是 iOS 开发的新手,我的应用程序有问题。我已经实现了一个标签栏导航和一个 TableView,但是当调用方法 didselectrowatindexpath 时,我没有看到链接的 detailView。这是我的应用程序的代码:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"ciao");
// UITableViewStyleGrouped table view style will cause the table have a textured background
// and each section will be separated from the other ones.
controller = [[DetailViewController alloc] init];
//initWithStyle:UITableViewStyleGrouped
//andDvdData:[dao libraryItemAtIndex:indexPath.row]];
controller.title = [[dao libraryItemAtIndex:indexPath.row] valueForKey:@"content"];
[self.navigationController pushViewController:controller animated:YES];
}
#import "DetailViewController.h"
@interface ListItemsTableView : UIViewController {
IBOutlet UITableView *myTableView;
Dfetch *dao;
DetailViewController *controller;
}