电气信息工程丛书
iOS 程序员面试笔试宝典
猿媛之家 组 编
蒋信厚 等编著
机 械 工 业 出 版 社
书出版社
iOS iOS 程
iOS iOS 5 iOS
iOS
iOS iOS
书 ObjectiveC 书机 Objective-C
iOS 书
Mac Pro
机 2013 出机
iOS
DEMO
书
Cocoa ChinaStack Overflow GitHub 程
iOS
机业
机 iOS
业
iOS Web
机业
书
出书程
工业业
业 iOS
书 1 iOS
2 3 ObjectiveC
ObjectiveC 4
iOS 程序员面试笔试宝典
Cocoa Touch 5 iOS 信机
6 iOS
7 8 9 iOS
程程 10
程程 11
12
书yuancoder@foxmail.com
信
编
2018 5
IV
面试笔试经验技巧篇
1 ···················································································· 2
2 ···································································································· 3
3 ································································································ 5
4 ···························································································· 5
5 ································································································ 6
6 ···································································································· 9
7 ·············································································· 11
8 ······················································· 12
9 业 ·················································································· 12
10 ················································································ 13
11 ········································································ 13
12 ································································ 14
13 ········································································································ 15
14 iOS 工程业 ···················································································· 18
15 iOS ································································································· 20
16 iOS ···························································································· 20
17 React Native Weex ·················································································· 21
18 业 iOS ············································································ 22
19 iOS ························································································· 24
20 iOS ····························································································· 27
面试笔试技术攻克篇
1 iOS ············································································································· 35
1.1 ····································································································································· 35
1.1.1 ··································································································· 35
1.1.2 Cocoa Cocoa Touch ······················································································ 36
1.1.3 ················································································································· 36
1.1.4 ·········································································································· 38
iOS 程序员面试笔试宝典
1.1.5 ······································································································ 39
1.1.6 工 ······································································································ 40
1.1.7 App ID Bundle ID ················································································· 40
1.1.8 ·········································································································· 40
1.2 ····································································································································· 43
1.2.1 SpriteKit SceneKit ························································································ 43
1.2.2 iOS ···································································· 43
1.2.3 iOS ························································· 44
1.2.4 UIButton NSObject ··························································· 45
1.2.5 Git SVN ······························································································· 45
2 ObjectiveC ······································································································ 47
2.1 ObjectiveC ································································································ 47
2.1.1 ObjectiveC ······················································································· 47
2.1.2 ObjectiveC Swift ···························································· 48
2.1.3 Foundation Core Foundation ····················································· 52
2.1.4 ObjectiveC ·········································· 53
2.1.5 self = [super init] ······························································· 54
2.1.6 #import #include import<>#import" " ······································· 54
2.1.7 ObjectiveC @class ··················································································· 54
2.1.8 ObjectiveC ······································································ 55
2.1.9 ObjectiveC nil ······································· 55
2.1.10 ObjectiveC ································································ 56
2.2 ····························································································································· 57
2.2.1 ObjectiveC ········································································ 57
2.2.2 ObjectiveC ······································································ 58
2.2.3 ObjectiveC NSInteger C int ······························ 59
2.2.4 NSNumber NSInteger ············································································ 59
2.3 ················································································································· 60
2.3.1 ObjectiveC ··················································· 60
2.3.2 ································································ 61
3 ObjectiveC ··························································································· 63
3.1 ObjectiveC ········································································································ 63
3.2 ObjectiveC ································································································ 72
3.2.1 ················································································································· 72
3.2.2 ················································································· 74
3.2.3 ObjectiveC Swift ················································································· 74
3.3 ObjectiveC ································································································ 75
3.3.1 ······························································································· 79
3.3.2 ObjectiveC ······················································· 79
VI
3.3.3 ObjectiveC id idnil ··············································· 82
3.3.4 method ObjectiveC selector ······························ 83
3.3.5 unrecognized selector ······································································ 83
3.3.6 机 ································································································· 83
3.3.7 runtime ··················································································· 84
3.3.8 ·············································································· 85
3.3.9 runtime ··············································································· 87
3.3.10 Category ································································· 88
3.3.11 息机 ······························································································ 89
3.3.12 息机 ······························································································ 91
3.3.13 isKindOfClass isMemberOfClass ················································ 94
3.3.14 ObjectiveC ································································ 94
3.4 ObjectiveC 机 ····················································································· 96
3.4.1 ···························································· 97
3.4.2 ObjectiveC ························································ 97
3.4.3 ······························································································· 98
3.4.4 ···················································· 101
3.5 Method Swizzling ······································································································ 102
3.5.1 Method Swizzling ··········································································· 102
3.5.2 runtime ·················································································· 105
3.6 ···························································································································· 107
3.6.1 C ObjectiveC ························································································· 107
3.6.2 Swift ObjectiveC ···················································································· 107
3.6.3 ObjectiveC copy ································································ 109
3.6.4 ObjectiveC ······························································ 110
3.6.5 ObjectiveC ································· 111
4 Cocoa Touch ··································································································· 112
4.1 UITableView ······················································································································ 112
4.1.1 UITableViewCell ···································································· 112
4.1.2 tableView ·················································· 114
4.1.3 tableView datasource ········································ 115
4.1.4 UITableView ················································· 116
4.2 UI ······························································································································· 117
4.2.1 viewDidLoad viewDidAppear ···························································· 117
4.2.2 frame bounds ······················································································· 117
4.2.3 masksToBounds ······························································· 118
4.2.4 tintColor ······························································································ 118
4.2.5 UIViewController ···································································· 118
4.2.6 View View ········································································· 119
VII