-3
我正在構建一個RSS應用程序。在這個應用程序中,我爲新聞來源創建了水平表格,而在其他可用視圖中,將根據用戶在水平表格中的選擇從rss供稿中加載新聞列表。兩個UIViewtable在一個視圖
事情是我想在一個視圖中呈現兩個表。第一張桌子在中間,新聞列表在中下。 我的問題是如何在用戶單擊第一個表中的條目後在同一視圖中加載第二個表。
我能夠做到這一點使用導航控制器,但我想在同一視圖中呈現它。
順便說一句我也有兩個表有2個獨立的數據源和委託。
這是用於打開新視圖的firsttable.m文件的代碼。感謝您的任何反饋。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSDictionary * newsSourceItem = (NSDictionary *)[_newsSourceList objectAtIndex:indexPath.row];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
RSSListViewController * rssListViewController = [[RSSListViewController alloc] initWithRSSURL:[newsSourceItem objectForKey:@"BlogURL"]];
[rssListViewController setTitle:[newsSourceItem objectForKey:@"BlogTitle"]];
[self.navigationController pushViewController:rssListViewController animated:YES];
[rssListViewController release];
}