如何在UITableView中访问第二个DetailView?

时间:2013-05-29 17:20:24

标签: uitableview detailview

再次使用X-Code获得一些帮助。 我在Storyboard上构建了一个像这样的应用程序联系人列表:

Storyboard Contacts List

如果我按下“A”,我会进入详细页面。

如果我按下“B”,我会转到与“A”相同的页面。

与c,D,E相同.....

以下是我使用的代码:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath  

{     static NSString * simpleTableIdentifier = @“PhoneA”;

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];

if (cell == nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableIdentifier];
}

cell.textLabel.text = [PhoneBooth objectAtIndex:indexPath.row];
return cell;

}

我试图从static-return cell复制/粘贴,并将cell更改为cell1,sympleTableIdentifier更改为sympleTableIdentifier1。

我是否需要更改其他内容?

TableView工作正常。所有名称都在那里,DetailView显示但它总是相同!!!!

THX寻求帮助

0 个答案:

没有答案