【发布时间】:2011-03-18 10:46:47
【问题描述】:
我创建了一个表格视图,它从数组中提取其单元格。
每个单元格都需要推送到不同的视图...我找不到被点击的单元格的值。它需要一个条件语句,但没有值我无法推送视图:(
下面是我的 didSelectRowAtIndexPath 的 sn-p
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
if(){
SendSms *detailViewController = [[SendSms alloc] initWithNibName:@"SendSms" bundle:nil];
[self.navigationController pushViewController:detailViewController animated:YES];
[detailViewController release];
}
}
你会看到 If 语句是空白的...我需要将列的值推送到另一个视图控制器。
请帮忙!谢谢
【问题讨论】:
标签: iphone cocoa-touch ios object ios4