1 //开始触摸 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 3 { 4 NSLog(@"你触摸了屏幕"); 5 } 6 //移动 7 - (void)touchesMoved:(NSSet *)touches
分类:
移动开发 时间:
2016-02-22 17:05:48
阅读次数:
147
#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent
分类:
编程语言 时间:
2016-02-20 15:53:12
阅读次数:
180
#import "ViewController.h" #import "LZJPerson.h" @interface ViewController () @end @implementation ViewController - (void)touchesBegan:(NSSet<UITouch
分类:
编程语言 时间:
2016-02-20 11:55:52
阅读次数:
210
1.//当手指在屏幕上滑动时 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint previousPoint = [touch
分类:
移动开发 时间:
2016-02-05 22:17:47
阅读次数:
220
1 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 2 { 3 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORI...
分类:
移动开发 时间:
2016-01-25 17:05:05
阅读次数:
152
1 // 当手指在view上移动的时候调用 2 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event 3 { 4 5 UITouch *touch = [touches anyObject]; 6 ...
分类:
移动开发 时间:
2016-01-23 17:58:34
阅读次数:
177
在很多场景中,我们都需要实现各种动画,这回我们来尝试搞一下控制器间跳转的modal动画。 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
ZYSecondViewController *second = [[ZYSecondViewController alloc]init];...
分类:
其他好文 时间:
2016-01-21 09:15:08
阅读次数:
192
前面写了几次提到UITouch,也提到了UITouch的三个代理方法- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event;- (void)touchesMoved:(NSSet*)touches withEvent:(UIEve...
分类:
其他好文 时间:
2016-01-13 21:38:17
阅读次数:
155
#import "ViewController.h"#import @interface ViewController ()@end@implementation ViewController- (void)touchesBegan:(NSSet *)touches withEvent:(UIEve...
分类:
移动开发 时间:
2016-01-12 15:34:00
阅读次数:
184
1.集合类 NSString *s1 = @"zhangsan"; NSString *s2 = @"lisi"; NSString *s3 = @"zhangsan"; 1.集合的创建 NSSet *set1 = [NSSet setWithObjects:s1,s2,s3, nil]...
分类:
其他好文 时间:
2016-01-11 22:06:29
阅读次数:
112