触摸事件不共享问题在iOS中,当某个触摸事件被UIGestureRecongnizer对象识别出来,就会“吃掉”所有相关的触摸事件,导致其他UIGestureRecongnizer对象无法识别出这个事件解决方法:代理1.UIView的子类self.panGestureRecognizer= ... Read More
posted @ 2015-10-18 23:46 sue_zheng Views(1456) Comments(0) Diggs(0) Edit
iOS中识别双击事件的做法:创建UITapGestureRecognizer对象,设置numberOfTapsRequired的值为2,UITapGestureRecognizer *doubleTapRecognizer = [[UITapGestureRecognizer ... Read More
posted @ 2015-10-18 23:40 sue_zheng Views(1403) Comments(0) Diggs(0) Edit
实例变量和属性声明Person 文件中@interface Person : NSObject { NSString *_name; //实例变量} @property(copy) NSString *firstName; //属性 @property(copy) NSString... Read More
posted @ 2015-10-18 23:15 sue_zheng Views(414) Comments(0) Diggs(0) Edit