Administrator
发布于 2017-01-21 / 921 阅读
0

iOS基础问答面试题连载(四)-持续更新题目

  1. 「Timhbw博客」iOS基础问答面试题连载(一)-附答案
  2. 「Timhbw博客」iOS基础问答面试题连载(二)-附答案
  3. 「Timhbw博客」iOS基础问答面试题连载(三)-附答案
  4. 「Timhbw博客」iOS基础问答面试题连载(四)

以下是一些自己收集的比较基础的问题(大神可以忽略),附上答案,方便大家阅读。俗话说得好,基础不牢,地动山摇。文章末尾会提供PDF版的文档,方便大家木有网的时候也可以用移动设备观看。

  1. 有a、b、c、d  4个异步请求,如何判断a、b、c、d都完成执行?如果需要a、b、c、d顺序执行,该如何实现?
  2. 关于 HTTP 请求 GET 和 POST 的区别是什么?
  3. 如何把 NSArray 里的 NSNumber 对象以顺序或反序排序?
  4. iOS 开发中数据持久化的几种方式。
  5. 描述 UITableView的单元格重用机制,以及如何使用。
  6. 循环引用的产生原因,以及解决方法。
  7. NSTimer 使用时注意事项?
  8. 在某个实例方法中,self.name = _name,name = _name  它们有区别吗,为什么?
  9. 非递归实现折半查找数组中值为 x 的某个元素(快速查找)。
  10. Swift 的枚举、结构体和类有什么区别?
  11. 最近的ipv6上架的问题 以及了解ipv6是什么
  12. instuments用过哪些工具,如何测试核心动画性能
  13. 对于ffmpeg,opengl的了解
  14. 如何收集APP异常信息(比如:崩溃、闪退等)
  15. 说说你对离屏渲染的了解,了解的话说一下你一般是从哪几方面操作的?
  16. 说说你对KVC和KVO的理解?
  17. lldb(gdb)常用的调试命令。
  18. 当键盘出现的时候,如何让 UITextField 自动上移,说说你的做法。
  19. 说一下你编程时的命名规范,包括文件命名、类命名、类别名、一般变量名、实体变量命名、方法命名、常量命名。
  20. #import 跟#include、@class有什么区别?#import<> 跟 #import”"又什么区别?
  21. 属性 readwrite,readonly,assign,retain,copy,nonatomic 各是什么作用,在那种情况下用?
  22. 写一个 setter 方法用于完成@property (nonatomic,retain)NSString *name,写一个 setter 方法用于完成@property(nonatomic,copy)NSString *name.
  23. 对于语句 NSString*obj = [[NSData alloc] init]; ,编译时和运行时obj分别是什么类型?
  24. 常见的 object-c 的数据类型有那些, 和 C 的基本数据类型有什么区别?
  25. Objective-C 如何对内存管理的,说说你的看法和解决方法?
  26. 内存管理的几条原则时什么?按照默认法则.哪些方法生成的对象需要手动释放?在和 property 结合的时候怎样有效的避免内存泄露?
  27. OC 中创建线程的方法是什么?如果指定在主线程中执行代码?如何延时执行代码?
  28. Difference between shallow copy and deep copy?
  29. What is advantage of categories? What is difference between implementing a category and inheritance?
  30. Difference between categories and extensions?
  31. Difference between protocol in objective c and interfaces in java?
  32. What are KVO and KVC?
  33. What is purpose of delegates?
  34. What are mutable and immutable types in Objective C?
  35. When we call objective c is runtime language what does it mean?
  36. what is difference between NSNotification and protocol?
  37. What is push notification?
  38. What is Polymorphism?
  39. What is Singleton?
  40. What is responder chain?
  41. Difference between frame and bounds?
  42. Difference between method and selector?
  43. Is there any garbage collection mechanism in Objective C.?
  44. What is NSOperation queue?
  45. What is lazy loading?
  46. Can we use one tableview with two different datasources? How you will achieve this?
  47. id、nil 代表什么?
  48. 如何对iOS设备进行性能测试?