ios - 如何在 nib 文件中的 ios 中添加幻灯片导航
<p><p>在 nib 文件中添加幻灯片导航时遇到问题。
请帮帮我</p>
<p>我有一个例子,但它是用于 Storyboard的,我希望它在 nib 中使用,这样我就可以在左侧打开一个菜单表单</p>
<pre><code>.rightMenu = rightMenu;
.menuRevealAnimationDuration = .18;
// Creating a custom bar button for right menu
UIButton *button= [ initWithFrame:CGRectMake(0, 0, 30, 30)];
forState:UIControlStateNormal];
action:@selector(toggleRightMenu) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *rightBarButtonItem = [ initWithCustomView:button];
.rightBarButtonItem = rightBarButtonItem;
SlideNavigationController *nav = [initWithRootViewController:viewCon];
nav.navigationBarHidden=YES;
self.window.rootViewController=nav;
;
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>我发现这是一个非常简洁的 nib 解决方案,我正在将它用于我自己的项目。你可以检查一下:
<a href="https://maniacdev.com/2013/08/open-source-component-for-making-a-nice-ios-7-control-center-style-animated-side-bar-menu" rel="noreferrer noopener nofollow">https://maniacdev.com/2013/08/open-source-component-for-making-a-nice-ios-7-control-center-style-animated-side-bar-menu</a> </p></p>
<p style="font-size: 20px;">关于ios - 如何在 nib 文件中的 ios 中添加幻灯片导航,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/31353910/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/31353910/
</a>
</p>
页:
[1]