前一篇说到了Foundation框架中的NSDirctionary类:http://blog.csdn.net/jiangwei0910410003/article/details/41830179,这一一篇来看一下Foundation的其他常用的类:NSNumber,NSDate,NSException注:其实按照Java中集合的思想,应该还有一个Set,是的,OC中有NSSet和NSMutab...
分类:
其他好文 时间:
2014-12-10 22:49:17
阅读次数:
320
代码://点击任何处跳转到百度的页面-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:...
分类:
其他好文 时间:
2014-12-08 10:41:20
阅读次数:
153
block是一门有用的大后期学问。现在我只是列出一点基本用法。1.快速枚举(Enumeration) 通常是和NSArray, NSDictionary, NSSet, NSIndexSet放在一起用。 当和以上这两种东西放在一起用时,通常block有两种用处。(代码为实例操作) i. 第...
分类:
其他好文 时间:
2014-12-04 17:42:23
阅读次数:
169
效果图:代码://点击任何处,弹出UIActionSheet-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UIActionSheet *sheet=[[UIActionSheet alloc]initWithT...
分类:
其他好文 时间:
2014-12-02 14:54:22
阅读次数:
232
NSSet与NSArray区别 NSSet到底什么类型,其实它和NSArray功能性质一样,用于存储对象,属于集合;NSSet , NSMutableSet类声明编程接口对象,无序的集合,在内存中存储方式是不连续的,不像NSArray,NSDictionary(都是有序的集合)类声明编程接口...
分类:
其他好文 时间:
2014-11-27 18:05:41
阅读次数:
116
其实做外包也是挺不错,虽然累点,但是一天天的知识的扩展不少,下面是今天的收获
①初始化数组一字典的方法
@[] 初始化不可变数组
@{} 初始化不可变字典
②手势的使用
iOS中处理手势之前是用四个方法:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
-...
分类:
移动开发 时间:
2014-11-25 23:47:57
阅读次数:
302
A.NSSet跟NSArray一样,不可变NSArray 自然顺序NSSet是无序的NSSet不允许存入重复元素,可以用来过滤重复元素也有可变的NSMutableSetB.集合转换 1 // 1.NSArray 转换成 NSMutableArray 2 NSArray *ar...
分类:
其他好文 时间:
2014-11-24 20:40:44
阅读次数:
163
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UIAlertView *dialog = [[UIAlertView alloc] initWithTitle:@"请输入分组名称" message:@"\n" de....
分类:
其他好文 时间:
2014-11-24 17:06:04
阅读次数:
160
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UIActionSheet * sheet = [[UIActionSheet alloc] initWithTitle:@"确定要清空图片缓存?" delegate:....
分类:
其他好文 时间:
2014-11-24 16:45:49
阅读次数:
147
IOS触摸事件和手势识别目录概述触摸事件手势识别概述为了实现一些新的需求,我们常常需要给IOS添加触摸事件和手势识别触摸事件触摸事件的四种方法-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 一开始触摸所触发的方法-(v....
分类:
移动开发 时间:
2014-11-24 15:15:42
阅读次数:
144