在我的项目中,我为菜单列表创建了一个类,我想通过调用我的baseViewController类来显示菜单列表通过平移手势和条形按钮形成多个viewController类。
附加我在基本viewController类中编写的代码:
-(void)ActionMenu:(id)sender {
CGRect destination = self.navigationController.view.frame;
if (destination.origin.x > 0) {
destination.origin.x = 0;
} else {
destination.origin.x = self.view.frame.size.width -60;
}
[UIView animateWithDuration:0.3 animations:^{
self.navigationController.view.frame = destination;
}];
}
通过这种方式我可以滑动视图但不能显示菜单![enter image
description here] 1
1:https://i.stack.imgur.com/9FEQa.png想要在替换黑屏区域时显示菜单。菜单页面是......
请帮助我......提前致谢