工作我使用*的NSMutableDictionary articleDictionary作爲tableview.I數據源有不同的選項卡中的tableview頁,每個標籤我使用不同的XML文件[https://開頭的域。 com/api/categories/3/user/xml]。我在(void)viewDidUnload區域收到了不同的值集合,但在表格視圖中沒有反映出來.Tableview仍然顯示舊的值。請幫助我。謝謝的NSMutableDictionary更新不UITableView的
self.articleDictionary = [NSDictionary dictionaryWithContentsOfURL: [NSURL URLWithString:urlString]];
您是否嘗試過* [_ myTableView reloadData] *如果您手動創建了表視圖,或者* [self.tableView reloadData] *如果您在UITableViewController中? – rdurand
我試過但沒有工作 – Suppry
我正在使用[self.myTableView reloadData]; in - (void)viewDidAppear:(BOOL)animated { – Suppry