ios - 从侧面菜单推送 ViewController 不起作用

标签 ios uiviewcontroller menu uinavigationcontroller pushviewcontroller

我正在编写一个侧面菜单,就像 Facebook 应用程序中的联系人一样。我希望当用户选择一个联系人时,菜单关闭并且 TopViewController 推送聊天。问题是使用下面的代码,它只会关闭菜单。

 "Menu.m"

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {
    UIViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"chat"];
    [self.slidingViewController.topViewController.navigationController pushViewController:controller animated:YES];

    [self.slidingViewController resetTopView];
}

最佳答案

这些是您要归档的内容的好教程side menufacebook style slide menu

关于ios - 从侧面菜单推送 ViewController 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19889114/

相关文章:

ios - Swift:使用开关关闭按钮声音

ios - View Controller 并显示另一个 View Controller

javascript - 当用户单击链接或页面中的其他任何位置时,JS 隐藏菜单

iphone - NSLog InterfaceRotation 在模拟器上不起作用?

iphone - 如何在 iOS 中支持横向和纵向 View ?

html - 摆脱-webkit-padding-start : 40px

javascript - 如何使 JavaScript 菜单更实用

ios - 在后台监听特定的蓝牙特征值

ios - UIAlertView 显示在 KeyWindow 的 subview 下

ios - 使用 segue 传递 tableviewcell 数据?