(iOS开发)允许右滑等操作

来源:互联网 发布:墨迹天气的数据来源 编辑:程序博客网 时间:2024/05/29 04:59
<pre name="code" class="objc">-(void)viewDidAppear:(BOOL)animated{//  这一句实现了允许右滑手势    self.navigationController.interactivePopGestureRecognizer.enabled=YES;//    在自定义了返回按钮的情况下还能实现右滑手势    self.navigationController.interactivePopGestureRecognizer.delegate = self;}


                                             
0 0
原创粉丝点击