Ojbect-C2 4、NSDictionary和NSMutableDictionary字典的使用
来源:互联网 发布:it培训学校 编辑:程序博客网 时间:2024/05/29 04:08
Adopted Protocols
NSCoding
encodeWithCoder:
initWithCoder:
NSCopying
copyWithZone:
NSMutableCopying
mutableCopyWithZone:
NSFastEnumeration
countByEnumeratingWithState:objects:count:
Tasks
Creating a Dictionary
+ dictionary
+ dictionaryWithContentsOfFile:
+ dictionaryWithContentsOfURL:
+ dictionaryWithDictionary:
+ dictionaryWithObject:forKey:
+ dictionaryWithObjects:forKeys:
+ dictionaryWithObjects:forKeys:count:
+ dictionaryWithObjectsAndKeys:
Initializing an NSDictionary Instance
– initWithContentsOfFile:
– initWithContentsOfURL:
– initWithDictionary:
– initWithDictionary:copyItems:
– initWithObjects:forKeys:
– initWithObjects:forKeys:count:
– initWithObjectsAndKeys:
– init
Creating Key Sets for Shared-Key Optimized Dictionaries
+ sharedKeySetForKeys:
Counting Entries
– count
Comparing Dictionaries
– isEqualToDictionary:
Accessing Keys and Values
– allKeys
– allKeysForObject:
– allValues
– getObjects:andKeys:
– objectForKey:
– objectForKeyedSubscript:
– objectsForKeys:notFoundMarker:
– valueForKey:
Enumerating Dictionaries
– keyEnumerator
– objectEnumerator
– enumerateKeysAndObjectsUsingBlock:
– enumerateKeysAndObjectsWithOptions:usingBlock:
Sorting Dictionaries
– keysSortedByValueUsingSelector:
– keysSortedByValueUsingComparator:
– keysSortedByValueWithOptions:usingComparator:
Filtering Dictionaries
– keysOfEntriesPassingTest:
– keysOfEntriesWithOptions:passingTest:
Storing Dictionaries
– writeToFile:atomically:
– writeToURL:atomically:
Accessing File Attributes
– fileCreationDate
– fileExtensionHidden
– fileGroupOwnerAccountID
– fileGroupOwnerAccountName
– fileHFSCreatorCode
– fileHFSTypeCode
– fileIsAppendOnly
– fileIsImmutable
– fileModificationDate
– fileOwnerAccountID
– fileOwnerAccountName
– filePosixPermissions
– fileSize
– fileSystemFileNumber
– fileSystemNumber
– fileType
Creating a Description
– description
– descriptionInStringsFileFormat
– descriptionWithLocale:
– descriptionWithLocale:indent:
NSMutableDictionary
Tasks
Creating and Initializing a Mutable Dictionary
+ dictionaryWithCapacity:
– initWithCapacity:
– init
+ dictionaryWithSharedKeySet:
Adding Entries to a Mutable Dictionary
– setObject:forKey:
– setObject:forKeyedSubscript:
– setValue:forKey:
– addEntriesFromDictionary:
– setDictionary:
Removing Entries From a Mutable Dictionary
– removeObjectForKey:
– removeAllObjects
– removeObjectsForKeys:
- Ojbect-C2 4、NSDictionary和NSMutableDictionary字典的使用
- Ojbect-C2 2、NSString和NSMutableString字符串的使用
- Ojbect-C2 3、NSArray和NSMutableArray数组的使用
- Ojbect-C2 5、NSSet和NSMutableSet集合的使用
- Ojbect-C2 6、NSFileHandle 和NSFileManager 的使用
- Ojbect-C2 1、NSNumber数字的使用
- NSDictionary和NSMutableDictionary的基本使用
- 固定字典NSDictionary 和 可变字典NSMutableDictionary
- Objective-C 字典的基本用法(NSDictionary和NSMutableDictionary)
- Objective-c 字典对象 (NSDictionary 和 NSMutableDictionary )
- Objective-C 字典:"NSDictionary" 和 "NSMutableDictionary"
- iOS开发学习专题-基础知识(三)NSDictionary字典NSMutableDictionary可变字典NSDictionary字典和json转换详细使用方式
- NSDictionary和NSMutableDictionary的用法
- NSDictionary和NSMutableDictionary的用法
- NSDictionary和NSMutableDictionary类常用方法的使用
- OC关于NSDictionary和NSMutableDictionary方法的使用
- OC中字典NSDictionary和可变字典NSMutableDictionary<代码演示>
- 不可变字典NSDictionary和可变字典NSMutableDictionary
- 2013年工作中遇到的20个问题:281-300
- 小探UIScrollView(二)缩放视图
- DirectShow中的例子,CAMSchedule未申明的错误解决办法
- 如何实现一个文件系统(四)
- 萤火虫优化算法的研究与改进
- Ojbect-C2 4、NSDictionary和NSMutableDictionary字典的使用
- VC编译器与GCC编译器的区别
- String,StringBuffer,StringBuilder的区别
- ListView的使用和添加事件
- linux bash中too many arguments问题的解决方法
- 3rg4t
- div+css中如何让图片垂直居中显示
- 项目 - 智能交通(2)
- 数据库约束(1)学习