我想通过我的应用程序的点击事件DDMenuController
从内部屏幕调用。UIButton
当我这样做时,它将创建双导航栏作为图像。有人可以帮我做到这一点。
随附的
Pushing a UIViewController
should not produce a double Navigation Bar effect unless one is added after loading the view, and not as part of the application's UINavigationController
. Nevertheless, you can Push a UIViewController
using,
[[self navigationController] pushViewController:yourViewController animated:YES/NO];
If your UIViewController
is designed using Storyboard, then you can call it by using the following code. (Remember to set the Storyboard Identifier of your DDMenuController
to something, as it will be using in the following code.)
//Add this to the top of your page with the other imports.
#import "DDMenuController.h"
//Add this to the selector called by your UIButton.
DDMenuController *ddMenu = (DDMenuController *)[[self storyboard] instantiateViewControllerWithIdentifier:@"DDMenuVC"];
[[self navigationController] pushViewController:ddMenu animated:YES/NO];