我的DetailViewController.m:
- (void)configureView
{
if(self.detailItem)
{
self.detailDescriptionLabel.text = [self.detailItem description];
}
}发布于 2013-01-26 15:40:41
编辑:
好的,在这种情况下,您需要在表视图控制器中实现didSelectRowAtIndexPath。
类似于:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// Set properties of your detail view controller here
if(indexPath.row == 1)
{
// Create and show image view 1
} else if(indexPath.row == 2)
{
// Create and show image view 2
}
}更多信息请在这里:
https://stackoverflow.com/questions/14538433
复制相似问题