0
我正在使用故事板構建應用程序。我正在使用MFSidemenu庫來創建像Facebook應用程序這樣的sidemenu。側面菜單正常顯示,但當我點擊側面菜單上的單元格時,菜單不會消失,並且不會加載另一個視圖控制器。請注意,我正在使用故事板。無法使用MFSidemenu加載viewController
謝謝。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:[NSBundle mainBundle]];
AlbumsTableVIewController *AlbumsViewController = [storyboard instantiateViewControllerWithIdentifier:@"Albums"];
AlbumsViewController.title=[NSString stringWithFormat:@"Demo Controller #%d-%d", indexPath.section, indexPath.row];
NSArray *controllers = [NSArray arrayWithObject:AlbumsViewController];
self.sideMenu.navigationController.viewControllers = controllers;
[self.sideMenu setMenuState:MFSideMenuStateClosed];
}
可以請你看看這個鏈接http://stackoverflow.com/questions/17102600/how-to-change-centerview-on-click-of-tableview-row-of-leftsidecontroller-in-ipho有類似的問題,但我沒有使用故事板 – 2013-06-17 12:05:40
找不到頁面? – xeravim 2013-06-27 09:25:50
可以ü再次嘗試打開該鏈接 – 2013-06-27 09:34:08