- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ NSArray *allTouches = [touches allObjects]; if([allTouches count] >=2)...
分类:
其他好文 时间:
2015-05-10 17:14:49
阅读次数:
82
猫猫分享,必须精品
原创文章,欢迎转载。转载请注明:翟乃玉的博客
地址:http://blog.csdn.net/u013357243?viewmode=contents
效果:
代码:
很简单,不多说,就是把一堆动画放一起,看代码。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{...
分类:
移动开发 时间:
2015-05-09 07:44:02
阅读次数:
174
ios的手势操作之UIGestureRecognizer浅析一、概述iPhone中处理触摸屏的操作,在3.2之前是主要使用的是由UIResponder而来的如下4种方式:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event-...
分类:
移动开发 时间:
2015-05-03 18:40:47
阅读次数:
277
//集合NSSet //集合也是储存对象,和字典一样也是无序存储 //集合中里面的元素不能重复 //集合里面的元素可以随机取出 //用数组放到集合中 NSArray *a10 = @[p1 , p2 , p3 , p4 , p5]; NSSet *s...
分类:
其他好文 时间:
2015-05-02 17:58:04
阅读次数:
145
第一种:使用view的touchesBegan:触摸事件来实现对键盘的隐藏,当点击view的区域就会触发这个事件-(void)touchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event{[searchBarresignFirstResponder];}第二种:创建自定义的触摸手势来实现对键盘的隐藏:-(void)viewDidLoad{[supe..
分类:
移动开发 时间:
2015-05-01 20:05:34
阅读次数:
261
/* NSArray 相当于java List;// NSSet相当于java Set // NSdictionary相当于java Map // NSArray NSMutableArray有序 快速访问 @[obj1,obj2,obj3];快速访问元素 数组名[i];// NSSet NSMut...
分类:
其他好文 时间:
2015-05-01 11:58:43
阅读次数:
91
1、NSSet的使用[NSSet setWithSet:(NSSet *)set]; 用另外一个set对象构造[NSSet setWithArray:(NSArray *)array];用数组构造[NSSet setWithObjects:...]:创建集合对象,并且初始化集合中的数值,结尾必需使用...
分类:
其他好文 时间:
2015-04-30 17:38:07
阅读次数:
106
1、NSSet的使用[NSSet setWithSet:(NSSet *)set]; 用另外一个set对象构造[NSSet setWithArray:(NSArray *)array];用数组构造[NSSet setWithObjects:...]:创建集合对象,并且初始化集合中的数值,结尾必需使用...
分类:
其他好文 时间:
2015-04-30 17:31:18
阅读次数:
106
NSArray/NSMutableArray/ NSSet/NSMutableSet /NSDictionary/NSMutableDictionary...
分类:
其他好文 时间:
2015-04-29 23:34:46
阅读次数:
294
//
// main.m
// NSSet
//
// Created by Passer-by on 15-3-23.
// Copyright (c) 2015年 MAC. All rights reserved.
//
#import
int main(int argc, const char * argv[])
{
@autoreleasepool
{
...
分类:
移动开发 时间:
2015-04-29 17:07:33
阅读次数:
140