新网创想网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

左右手势的滑动,来切换页面-创新互联

//向左滑动的时候的手势

公司主营业务:网站设计制作、成都网站建设、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。创新互联公司是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。创新互联公司推出零陵免费做网站回馈大家。

  UISwipeGestureRecognizer *leftSwipeGestureRecognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(presentRightMenuViewController:)];

  [leftSwipeGestureRecognizer setDirection:UISwipeGestureRecognizerDirectionLeft];

  [self.view addGestureRecognizer:leftSwipeGestureRecognizer ];

  //向右滑动时候的手势

  UISwipeGestureRecognizer *rithSwipeGestureRecognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(presentRightMenuViewController:)];

  [rithSwipeGestureRecognizer setDirection:UISwipeGestureRecognizerDirectionRight];

  [self.view addGestureRecognizer:rithSwipeGestureRecognizer ];

- (void)presentRightMenuViewController:(UISwipeGestureRecognizer *)dddd

{

  [self.navigationController popViewControllerAnimated:YES];

}

那么问题来咯,现在返回上一个页面后,会崩溃,错误原因,  -------待结果

2014-11-11 21:33:18.907 LYF_video[7979:258930] *** -[UIImageView superview]: message sent to deallocated instance 0x7fb2f3ea8870

   UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapClick)];

  tap.numberOfTapsRequired = 1;

  [self.view addGestureRecognizer:tap];

//点击一次的手势

- (void)tapClick

{

  static BOOL flag = YES;

  if (flag == YES) {

    self.viewTitle.hidden = NO;

    flag = NO;

  }else{

    self.viewTitle.hidden = YES;

    flag = YES;

  }

}

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


当前标题:左右手势的滑动,来切换页面-创新互联
分享地址:http://www.wjwzjz.com/article/diieoj.html
在线咨询
服务热线
服务热线:028-86922220
TOP