UIDeviceOrientationrefers to the physical orientation of the device whereasUIInterfaceOrientationrefers to the orientation of the user interface.UIDev... Read More
触摸事件不共享问题在iOS中,当某个触摸事件被UIGestureRecongnizer对象识别出来,就会“吃掉”所有相关的触摸事件,导致其他UIGestureRecongnizer对象无法识别出这个事件解决方法:代理1.UIView的子类self.panGestureRecognizer= ... Read More
Dive into python中说道Tuple是不可变的List,一旦创建了一个Tuple,就不能以任何方式改变它。但是Tuple 比 list 操作速度快。如果您定义了一个值的常量集,并且唯一要用它做的是不断地遍历它,请使用 tuple 代替 list。我写了几行代码测试了一下:example_... Read More
项目地址:https://github.com/chrisbanes/Android-PullToRefresh介绍几个主要的成员变量(1)下拉刷新有四种状态:点击刷新,list的item个数无法填满整个屏幕出现下面效果正在下拉,header出现,箭头向下,提示“下拉刷新”header正在下拉,箭头... Read More