码迷,mamicode.com
首页 >  
搜索关键字:nsditionary nsmutableditionary nsset nsmutableset    ( 346个结果
IOS开发-指纹识别
1. 简介 iPhone 5S 开始支持 iOS 8.0 开放了 Touch ID 的接口 2. 代码准备- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self inputUserinfo]; }/// 输入用户信息 - (void)inputUserinfo { UIAlertView *a...
分类:移动开发   时间:2015-06-05 10:18:34    阅读次数:186
NSSet
1.NSSet是Hash表使用散列算法而生成,如果集合中又两个相同的元素,那么只生成后面的那一个2.声明一个NSSetNSSet *set = [[[NSSet alloc] initWithObjects:@"one",@"two",@"three", nil] autorelease];NSSe...
分类:其他好文   时间:2015-06-05 00:43:46    阅读次数:101
Read and Write NSArray, NSDictionary and NSSet to a File
查询地址:http://iosdevelopertips.com/data-file-management/read-and-write-nsarray-nsdictionary-and-nsset-to-a-file.htmlWith just a few lines of code, you c...
分类:其他好文   时间:2015-06-03 09:31:34    阅读次数:90
UITouch和TableView如何响应点击事件
实现代码:生命一个集成UITableView的类#import @protocol CHTouchTableViewDelegate @optional- (void)tableView:(UITableView *)tableView touchesBegan:(NSSet *)touches ....
分类:其他好文   时间:2015-05-29 15:13:35    阅读次数:442
NSArray是强引用容器
经常比较疑惑NSArray、NSDictionary、NSSet这几个对象容器管理对象所采用的方式是“强引用”还是“弱引用”。通过简单的命令行程序得到的结论是“NSArray、NSDictionary、NSSet这几个容器都是强引用容器”。打开Xcode,新建project,选择“OS X”-“Ap...
分类:其他好文   时间:2015-05-22 12:57:59    阅读次数:129
[OC Foundation框架 - 21] NSSet集合 & 集合之间的转换
A.NSSet跟NSArray一样,不可变NSArray 自然顺序NSSet是无序的NSSet不允许存入重复元素,可以用来过滤重复元素也有可变的NSMutableSetB.集合转换 1 // 1.NSArray 转换成 NSMutableArray 2 NSArray *ar...
分类:其他好文   时间:2015-05-19 22:20:18    阅读次数:186
【iOS开发-触摸】移动的UIView例子
iOS触摸方法://开始接触 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; - //在屏幕上移动 - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; - //触摸结束 - (void)touchesEnded:(NSSet *)touc...
分类:移动开发   时间:2015-05-18 23:13:43    阅读次数:249
ios 集合总结
NSArray 用于对象有序集合(相当于是数组) NSSet 用于对象无序集合NSDictionary 用于键值映射 以上三种集合类是不可变的(一旦初始化后,不能再动态的增加或删除元素),如果需要用到可变集合,则需要用到下面几个类:NSMutableArray NSMutableSet NSMuta...
分类:移动开发   时间:2015-05-18 15:57:50    阅读次数:330
NSSet类型 以及与NSArray区别
NSSet到底什么类型,其实它和NSArray功能性质一样,用于存储对象,属于集合;NSSet , NSMutableSet类声明编程接口对象,无序的集合,在内存中存储方式是不连续的,不像NSArray,NSDictionary(都是有序的集合)类声明编程接口对象是有序集合,在内存中存储位置是连续的...
分类:其他好文   时间:2015-05-14 18:37:29    阅读次数:112
「Foundation」字符串
一、Foundation框架中一些常用的类 字符串型: NSString:不可变字符串 NSMutableString:可变字符串 集合型: 1)NSArray:OC不可变数组 NSMutableArray:可变数组 2)NSSet: NSMutabl...
分类:其他好文   时间:2015-05-11 19:44:54    阅读次数:91
346条   上一页 1 ... 20 21 22 23 24 ... 35 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!