我想將消息發送到另一個控制器中的tableView。 其實我在detalViewController。 的的tableView我想解決的是在DashboardViewController:從其他控制器中瀏覽viewController層次結構
-UIViewController
--UIView
--- 的UITableView//我想解決這個問題的tableView。
我該怎麼做? 在我DetailViewController IBAction爲我有這樣的代碼:
NSLog(@"previousBtn");
DashboardViewController *parent = (DashboardViewController *)self.parentViewController;
NSIndexPath *actualIndexPath = selectedRow2;
NSIndexPath * newIndexPath = [NSIndexPath indexPathForRow:actualIndexPath.row-1 inSection:actualIndexPath.section];
我的目標是建立新的selectRowAtIndexPath:
[parent.tableViews selectRowAtIndexPath:newIndexPath animated:YES scrollPosition:UITableViewScrollPositionMiddle];
但parent.tableViews是不正確的方法 感謝您的幫助,
brush51