集合 - 1
来源:互联网 发布:linux在终端中打开rpm 编辑:程序博客网 时间:2024/04/30 10:29
Cocoa 中的集合有NSArray(NSMutableArray), NSSet (NSMutableSet, NSCountedSet), NSDictionary (NSMutableDictionary)
NSArray
-(unsigned) count
-(id) objectAtIndex:(unsigned) index
-(BOOL) containsObject:(id) anObject
NSMutableArray
-(void) addObject:(id) anObject
-(void) insertObject:(id) anObject atIndex:(unsigned) index
-(void) removeObjectAtIndex:(unsigned) index
-(void) removeObject:(id) object
NSDictionary
-(unsigned) count
-(id) objectForKey:(id) aKey
-(NSArray *) allKeys
NSMutableDictionary
-(void) setObject:(id) anObject forKey:(id) aKey
-(void) removeObjectForKey:(id) aKey
//操作plist
-(id) initWithContentsOfFile:(NSString *) aPath
-(BOOL) writeToFile:(NSString *) path atomically:(BOOL) flag
获取地址簿记录 (加入AddressBook 框架)
#import <AddressBook/AddressBook.h>
ABAddressBook * book = [ABAddressBook sharedAddressBook];
NSArray *people = [book people];
NSString *firstName = [people valueForProperty:@"First"];
NSString *lastName = [people valueForProperty:@"Last"];
- 集合1
- 集合 - 1
- 集合1
- 集合1
- 集合1
- 集合---1
- 集合1
- 集合-1
- 集合1
- 集合1
- 集合和泛型2-----集合1
- 黑马程序员-集合1-List集合
- 集合1——Collection集合
- 集合1--List集合及泛型
- Hibernate映射集合属性1__Set集合
- java集合框架(1、集合介绍)
- 集合框架专题1-集合框架概述
- 集合框架1,数组集合ArrayList
- poj 1273 Drainage Ditches
- 用CMake写一个简单的交叉编译测试工程
- 1740
- poj 1274 The Perfect Stall
- 1003:max sum
- 集合 - 1
- CSDN
- poj 2983 Is the Information Reliable?
- php session有效期问题
- 如何制作电子地图
- 云计算介绍(来自百度百科)
- hdu1689BFS求最小奇数环
- VB 写的文件分割工具,还蛮好用的。附上源码
- ubuntu 10.04 serves 双网卡负载平衡