Database NSE映射
我需要用NSDictionary或NSArray映射我的数据库ID。 我有一张桌子。当我通过某个字段单击时,必须显示一个详细视图,其中将显示有关记录的详细信息。 在以下情况下,所有工作正常: DB表格行 1 -> 1 2 -> 2 3->3 但是当 DB表格行 1 -> 1 30 -> 2 31 -> 3 不要工作Database NSE映射,database,sqlite,nsdictionary,Database,Sqlite,Nsdictionary,我需要用NSDictionary或NSArray映射我的数据库ID。 我有一张桌子。当我通过某个字段单击时,必须显示一个详细视图,其中将显示有关记录的详细信息。 在以下情况下,所有工作正常: DB表格行 1 -> 1 2 -> 2 3->3 但是当 DB表格行 1 -> 1 30 -> 2 31 -> 3 不要工作 所以我需要相互链接数据库记录和表视图。有什么建议吗?塔克斯 显示从表视图传递到详细视图的代码行。 - (void)tableView:(UITableView *)tableView
所以我需要相互链接数据库记录和表视图。有什么建议吗?塔克斯 显示从表视图传递到详细视图的代码行。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
detailTableView = [[DetailsTableViewController alloc] initWithNibName: @"DetailsTableViewController" bundle:nil];
//getting selected row
NSUInteger row = [indexPath row];
//initializing detailTableView with data to show details
[detailTableView setWithObjectID: [[usersIDList objectAtIndex: row ] intValue] ];
//show it
[self.navigationController pushViewController: detailTableView animated:YES];
[detailTableView release];
}