分类模块
2018-02-01 本文已影响0人
Queen_BJ
电商项目中分类模块用到了以下界面展示,抽时间整理下,可能写的粗糙,希望大家批评指导
主要是 用到 UIPanGestureRecognizer 手势
在view中取到滑动距离
CGPoint translation = [panGestureRecognizer translationInView:self.firstCategoryView];
滑动结束后判断
panGestureRecognizer.state == UIGestureRecognizerStateEnded

下在地址 https://github.com/juanzhao/ZJDemo.git