我的應用程序正在使用JASidePanels庫,我已經使用storyboard設置了它們。中心觀點是一個UITableView和左面板是其中我調用一個方法(通過按下按鈕)的圖ios cellForRowAtIndexPath不會被調用,但numberOfRowsInSection被調用並返回一個數字
- (IBAction)reloadAllFilters:(UIButton *)sender{
MasterViewController *masterController = [self.storyboard instantiateViewControllerWithIdentifier:@"centerViewController"];
NSMutableArray *arrayOfFilterIds = [[NSMutableArray alloc] init];
// another code
masterController.filterIdsToDisplay = arrayOfFilterIds;
[masterController.tableView reloadData];
[self.sidePanelController toggleLeftPanel:self];
}
的事情是,當應用程序啓動的數目行由數字返回,但在我調用此方法後,行數爲30,但我無法看到任何內容。
我認爲問題是我正在實例化一個新的masterController,因此我不能得到實際的表視圖來顯示?或者我錯了?你能幫我麼?
其中是「arrayOfFilterIds」數組中的數據。 – Madhu 2013-05-10 10:56:28