我有一個應用程序,其中我使用sidemenu控制器,如Facebook應用程序。基本上是UITableViewController
。當我在視圖中使用[self.tableView reloaddata]
時,會出現第一次工作正常的方法。由於某些要求我需要從另一種觀點認爲controller.so我這樣做重新加載此表視圖:我的reloaddata調用不調用UItableviewcontroller中的委託方法?
SideMenuViewController *second = [[SideMenuViewController alloc]init];
[second viewWillappear:YES]
我在哪裏重裝data.But當我這樣做的reloaddata不調用tableviewcontroller的cellforindexmethode但它調用numberOfRowsInSection方法可以幫助我找出錯誤的地方。
您創建了SideMEnuViewController的新實例並調用viewWillAppear嗎? – Dave
是的..我在做什麼 –
@angry_developer:你是怎麼從SideMenuViewController顯示另一個視圖控制器的? –