Manipulating Strings(Chapter 6 of Objective-C Phrasebook)
2011-03-28 11:48
344 查看
Foundation provides a class for assigning arbitrary attributes to strings. The NSAttributedString class lets you attach dictionaries to ranges in attributed strings. These dictionaries can contain any arbitrary information that you want, including semantic markup. It’s important to remember that sending a -copy message to any NSString subclass will always return an immutable string. If you wanta mutable string, you must use -mutableCopy instead.
相关文章推荐
- Common Objective-C Patterns(Chapter 4 of Objective-C Phrasebook)
- An Objective-C Primer(Chapter 2 of Objective-C Phrasebook)
- Memory Management(Chapter 3 of Objective-C Phrasebook)
- Numbers(Chapter 5 of Objective-C Phrasebook)
- Working with Collections(Chapter 7 of Objective-C Phrasebook)
- UNP总结 Chapter 18~21 路由套接字、密钥管理套接字、广播、多播
- UNP总结 Chapter 2 传输层:TCP、UDP和SCTP
- Chapter 2. URLs and Resources 2.2 URL Syntax
- !!!Chapter 2 Variable and Basic Types (2.4 ~ 2.9)
- 软件工程管理——《人月神话的读书笔记》(chapter2~chapter10)
- ATL Internals 2ed复习.chapter 3.CComSafeArray
- ATL Internals 2ed复习.chapter 4.Creators
- Begining Linux Programing Chapter 3
- Chapter 3 - Variables and Expressions
- Love or Money?---Chapter 3
- Chapter 5 - More About Variables
- Love or Money?---Chapter 5
- The Coldest Place On Earth——Chapter 3 The Ponies
- The Coldest Place On Earth——Chapter 6 A Bad Start
- 《线性代数习题集》 Chapter 1_Determinants_Sec.1.Second-and Third-Order Determinants