iOS面试题大全86-99
2015-10-19 09:57
417 查看
86. When to use NSMutableArray and when to use NSArray?
1> 当数组元素需要动态地添加或者删除时,用NSMutableArray2> 当数组元素固定不变时,用NSArray
87. Give us example of what are delegate methods and what are data source methods of uitableview.
1> 代理方法:返回tableView每行的高度、监听tableView每行的选中2> 数据源方法:返回tableView数据的组数和行数、每行显示什么数据
88. How many autoreleasepool you can create in your application? Is there any limit?
没有限制89. If we don’t create any autorelease pool in our application then is there any autorelease pool already provided to us?
系统会默认会不定时地创建和销毁自动释放池90. When you will create an autorelease pool in your application?
当不需要精确地控制对象的释放时间时,可以手动创建自动释放池91. When retain count increase?
当做一次retain或者copy操作,都有可能增加计数器92. What are commonly used NSObject class methods?
NSObject常见的类方法有:alloc、new、description等93. What is convenience constructor?
像NSStirng的stringWithFormat,NSNumber的numberWithInt94. How to design universal application in Xcode?
1> 创建项目时,Device选择Universal2> 可以创建一套痛用的数据模型
3> 根据iPhone\iPad选择不同的控制器(iPad可能用UISplitViewController)
4> 根据iPhone\iPad选择不同的界面
95. What is keyword atomic in Objective C?
1> atomic是原子性2> atomic会对set方法的实现进行加锁
96. What are UIView animations?
UIView封装的核心动画可以通过类方法\block实现97. How can you store data in iPhone applications?
1> 属性列表2> Preference(NSUserDefaults)
3> 键值归档(NSKeyedArchiver、NSCoding)
4> SQLite数据库
5> Core Data
98. What is NSManagedObject model?
NSManagedObject是Core Data中的实体对象99. What is predicate?
谓词:可以以一定条件来过滤数组、字典等集合数据,也能用在Core Data的数据查询中相关文章推荐
- iOS面试题大全66-85
- 超全!iOS 面试题汇总
- iOS面试题大全56-65
- 月薪3万的程序员都避开了哪些坑
- 黑马程序员-内省学习笔记
- 黑马程序员---成长之路-----OC之基础篇Foundation©
- 黑马程序员 Java基础——面向对象思想
- 黑马程序员 Java基础难点总结day2
- 黑马程序员---成长之路-----OC之基础篇Foundation框架
- 黑马程序员---成长之路-----OC之基础篇ARC和类别
- 黑马程序员---成长之路-----OC之基础篇MRC内存管理
- 2016校招面试题汇总
- 黑马程序员——Java基础语法 之运算符
- 程序员永远不要再犯的5个编程bug
- 程序员的逗比瞬间(第三季)
- “码农”岂是你们叫的?
- 程序员遇到bug的30种反应
- 黑马程序员 Java基础难点总结day1
- 黑马程序员——Java堆栈区别
- 给Android程序员的一些面试建议