iOS Cookbook
Introduction
1.
Swift代码风格
2.
Swift Tips
2.1.
Optional
2.2.
基本数据类型
2.3.
Extension
3.
Project Structure
4.
依赖管理
4.1.
CocoaPods
5.
Foundation
5.1.
String
5.2.
AttributedString
6.
UIKit
6.1.
UILabel
6.2.
UIImage
6.3.
UIColor
6.4.
UITextField
6.5.
UITableView
6.6.
UIViewController
6.6.1.
SFSafariViewController
6.6.2.
MFMailComposeViewController
6.7.
UIKeyboard
6.8.
UIImageView
7.
Core Animation
7.1.
CATransition
8.
Animation
8.1.
AutoLayout Animation
8.2.
UIView Animation
9.
Effect
9.1.
Gradient
9.2.
Blur
10.
性能
10.1.
Instruments
11.
第三方库
Powered by
GitBook
iOS Cookbook
String
在与Range配合使用时,建议转换为String进行操作,更方便
(text
as
NSString
).substringWithRange(
NSMakeRange
(
0
,
3
))