REFrostedViewController icon indicating copy to clipboard operation
REFrostedViewController copied to clipboard

How to present the meueCtr without the navigationController?

Open liuyan3176 opened this issue 10 years ago • 7 comments

I want add this function in a button'action cause my project do not have navigationController. So,how to present the meueCtr without the navigationController? Thanks a lot

liuyan3176 avatar Jun 19 '15 03:06 liuyan3176

demo里面有个demonavigationcontroller,里面有加button的方法,你可以自己拿过来到你的project中

------------------ 原始邮件 ------------------ 发件人: "liuyan3176";[email protected]; 发送时间: 2015年6月19日(星期五) 中午11:53 收件人: "romaonthego/REFrostedViewController"[email protected];

主题: [REFrostedViewController] How to present the meueCtr without thenavigationController? (#139)

I want add this function in a button'action cause my project do not have navigationController. So,how to present the meueCtr without the navigationController? Thanks a lot

— Reply to this email directly or view it on GitHub.

MonkeyS914 avatar Jun 19 '15 04:06 MonkeyS914

直接presentMenuViewController就行了吗

liuyan3176 avatar Jun 19 '15 05:06 liuyan3176

  • (void)showMenu { // Dismiss keyboard (optional) // [self.view endEditing:YES]; [self.frostedViewController.view endEditing:YES];

    // Present the view controller // [self.frostedViewController presentMenuViewController]; }

------------------ 原始邮件 ------------------ 发件人: "liuyan3176";[email protected]; 发送时间: 2015年6月19日(星期五) 中午1:52 收件人: "romaonthego/REFrostedViewController"[email protected]; 抄送: "MonkeyS914"[email protected]; 主题: Re: [REFrostedViewController] How to present the meueCtr without thenavigationController? (#139)

直接presentMenuViewController就行了吗

— Reply to this email directly or view it on GitHub.

MonkeyS914 avatar Jun 19 '15 06:06 MonkeyS914

非常感谢,只可惜我的RootController上还有两个图层,所以无法显示出来...

liuyan3176 avatar Jun 19 '15 06:06 liuyan3176

或者从菜单中选择Debug > View Debugging > Capture View Hierarchy ,可以看看他究竟在哪一层,然后再解决

------------------ 原始邮件 ------------------ 发件人: "liuyan3176";[email protected]; 发送时间: 2015年6月19日(星期五) 下午2:18 收件人: "romaonthego/REFrostedViewController"[email protected]; 抄送: "MonkeyS914"[email protected]; 主题: Re: [REFrostedViewController] How to present the meueCtr without thenavigationController? (#139)

非常感谢,只可惜我的RootController上还有两个图层,所以无法显示出来...

— Reply to this email directly or view it on GitHub.

MonkeyS914 avatar Jun 19 '15 06:06 MonkeyS914

在视频中,选择Capture View Hierarchy后直接就卡住了....看来只能换一种方法实现侧滑了

liuyan3176 avatar Jun 19 '15 06:06 liuyan3176

那估计你那个显示的控件太多,关掉其他的程序,再调一次试试,按理说present应该是在最上面

------------------ 原始邮件 ------------------ 发件人: "liuyan3176";[email protected]; 发送时间: 2015年6月19日(星期五) 下午2:29 收件人: "romaonthego/REFrostedViewController"[email protected]; 抄送: "MonkeyS914"[email protected]; 主题: Re: [REFrostedViewController] How to present the meueCtr without thenavigationController? (#139)

在视频中,选择Capture View Hierarchy后直接就卡住了....看来只能换一种方法实现侧滑了

— Reply to this email directly or view it on GitHub.

MonkeyS914 avatar Jun 19 '15 06:06 MonkeyS914