When to use NSMutableArray and when to use NSArray? 數據庫
當數組元素須要動態地添加或者刪除時,用NSMutableArray數組
當數組元素固定不變時,用NSArrayapp
Give us example of what are delegate methods and what are data source methods of uitableview.ide
代理方法:返回tableView每行的高度、監聽tableView每行的選中動畫
數據源方法:返回tableView數據的組數和行數、每行顯示什麼數據ui
How many autorelease you can create in your application? Is there any limit?atom
沒有限制代理
If we don’t create any autorelease pool in our application then is there any autorelease pool already provided to us?code
系統會默認會不定時地建立和銷燬自動釋放池orm
When you will create an autorelease pool in your application?
當須要精確地控制對象的釋放時間時,須要手動建立自動釋放池
When retain count increase?
當作一次retain或者copy操做,都有可能增長計數器
What are commonly used NSObject class methods?
NSObject常見的類方法有:alloc、new、description等
What is convenience constructor?
像NSStirng的stringWithFormat,NSNumber的numberWithInt
How to design universal application in Xcode?
建立項目時,Device選擇Universal
能夠建立一套痛用的數據模型
根據iPhone\iPad選擇不一樣的控制器(iPad可能用UISplitViewController)
根據iPhone\iPad選擇不一樣的界面
What is keyword atomic in Objective C?
atomic是原子性
atomic會對set方法的實現進行加鎖
What are UIView animations?
UIView封裝的核心動畫能夠經過類方法\block實現
How can you store data in iPhone applications?
屬性列表
Preference(NSUserDefaults)
鍵值歸檔(NSKeyedArchiver、NSCoding)
SQLite數據庫
Core Data
What is NSManagedObject model?
NSManagedObject是Core Data中的實體對象
What is predicate?
謂詞:能夠以必定條件來過濾數組、字典等集合數據,也能用在Core Data的數據查詢中