我已经使用 SWRevealViewController
实现了一个侧边菜单应用程序,它运行良好。在我的 FrontViewController
中,我想加载一个 subview 。当我单击显示切换按钮时,我想删除该 subview 。因为如果我打开那个 subview 而不关闭它,如果我单击 revealtoggle 按钮,它会转到侧面菜单。如果我选择 FrontViewcontroller
上面的相同菜单项,也会加载 subview (之前它没有关闭)。那么当侧边菜单出现时,如何删除这个 subview 。我做了这样的事情。但是这个委托(delegate)没有在我的 ViewController
- (void)revealController:(SWRevealViewController *)revealController willMoveToPosition:(FrontViewPosition)position
{
if(mapon==1)
{
[MapView removeFromSuperview];
mapon=0;
}
}
请帮帮我。 谢谢
最佳答案
关于ios - SWRevealViewController 委托(delegate)未触发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32344969/