码迷,mamicode.com
首页 >  
搜索关键字:nsset    ( 340个结果
iOS事件(触摸,移动,晃动)
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
多线程 CGD快速迭代
#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
UITouch手指滑动屏幕,屏幕跟着移动
1.//当手指在屏幕上滑动时 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; CGPoint previousPoint = [touch
分类:移动开发   时间:2016-02-05 22:17:47    阅读次数:220
ios多线程GCD下载图片
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
ios View拖拽
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动画
在很多场景中,我们都需要实现各种动画,这回我们来尝试搞一下控制器间跳转的modal动画。 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { ZYSecondViewController *second = [[ZYSecondViewController alloc]init];...
分类:其他好文   时间:2016-01-21 09:15:08    阅读次数:192
Touch
前面写了几次提到UITouch,也提到了UITouch的三个代理方法- (void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event;- (void)touchesMoved:(NSSet*)touches withEvent:(UIEve...
分类:其他好文   时间:2016-01-13 21:38:17    阅读次数:155
iOS指纹识别
#import "ViewController.h"#import @interface ViewController ()@end@implementation ViewController- (void)touchesBegan:(NSSet *)touches withEvent:(UIEve...
分类:移动开发   时间:2016-01-12 15:34:00    阅读次数:184
Foundation ----->NSSet
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
340条   上一页 1 ... 8 9 10 11 12 ... 34 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!