1. When to use NSMutableArray and when to use NSArray?

1> 当数组元素需要动态地添加或者删除时,用NSMutableArray

2> 当数组元素固定不变时,用NSArray

2. Give us example of what are delegate methods and what are data source methods of uitableview.

1> 代理方法:返回tableView每行的高度、监听tableView每行的选中

2> 数据源方法:返回tableView数据的组数和行数、每行显示什么数据

3. How many autoreleasepool you can create in your application? Is there any limit?

没有限制

4. If we don’t create any autorelease pool in our application then is there any autorelease pool already provided to us?

系统会默认会不定时地创建和销毁自动释放池

5. When you will create an autorelease pool in your application?

当不需要精确地控制对象的释放时间时,可以手动创建自动释放池

6. When retain count increase?

当做一次retain或者copy操作,都有可能增加计数器

7. What are commonly used NSObject class methods?

NSObject常见的类方法有:alloc、new、description等

8. What is convenience constructor?便利构造函数?

像NSStirng的stringWithFormat,NSNumber的numberWithInt

9. How to design universal application in Xcode?

1> 创建项目时,Device选择Universal

2> 可以创建一套痛用的数据模型

3> 根据iPhone\iPad选择不同的控制器(iPad可能用UISplitViewController)

4> 根据iPhone\iPad选择不同的界面

10. What is keyword atomic in Objective C?

1> atomic是原子性

2> atomic会对set方法的实现进行加锁

11. What are UIView animations?

UIView封装的核心动画可以通过类方法\block实现

(首尾式动画和块动画)

12. How can you store data in iPhone applications?

1> plist属性列表(NSArray/NSDictionary)

2> Preference(NSUserDefaults,偏好设置)一般不用

3> 键值归档(NSKeyedArchiver、NSCoding)

4> SQLite3数据库

5> Core Data

13. What is NSManagedObject model?

NSManagedObject是Core Data中的实体对象

14. What is predicate?

谓词:可以以一定条件来过滤数组、字典等集合数据,也能用在Core Data的数据查询中

iOS笔试题03的更多相关文章

  1. YouKu iOS笔试题一

    序言 最近收到某某同学将去youku的iOS笔试题的邮件,希望笔者能整理一下,并提供参考答案.笔者决定整理出来,并分享给大家.当然,与此同时,也想看看youku的笔试题到底有多难,也考考自己有多少料吧 ...

  2. 一份中规中矩的 iOS笔试题

    一.背景 因为一些原因,我从公司离职,在此之前,我需要帮忙招聘一个新人来做我的工作,于是就有了这篇文章. 由于公司项目16年就已经上线了,前同事写的项目中,有用xib.storyBoard.代码自动布 ...

  3. 2016年iOS笔试题

    收集了一些ios面试的一些基础的试题,其中也有一些较难的 1.请简述UIView与CALayer有什么不同.2.Block什么情况下会保留实体内引用到外部对象,什么时候要用__block或__weak ...

  4. ios笔试题(选择题)

    1-10 C语言 & 计算机基础 1.请看下面一段代码 static int a = 1; int main(){ int b = 2; char *c = NULL; c = (char * ...

  5. ios笔试题

    最近找工作,有面试有笔试部分,故把笔试题自己整理了下. 面试能力要求:精通iphone的UI开发,能熟练操作复杂表视图,熟练使用图层技术, 可以自定义UI控件,使用类别扩展系统控件功能;   擅长通讯 ...

  6. iOS笔试题04

    1. Object-C有多继承吗?没有的话用什么代替?
 1> OC是单继承,没有多继承 2> 有时可以用分类category和协议protocol来代替多继承 2. Object-C有私 ...

  7. iOS笔试题02

    1. Difference between shallow copy and deep copy? 1> 浅拷贝:指针(地址)拷贝,不会产生新对象 2> 深拷贝:内容拷贝,会产生新对象 2 ...

  8. 面试中遇到的iOS笔试题

    1.浅复制和深复制的区别? 2.类别的作用(category)?继承和类别在实现有何区别? 3.类别(category)和类扩展(extension)的区别. 4.obc中的协议和java中的接口概念 ...

  9. iOS 笔试题

    转:http://blog.sina.com.cn/s/blog_b0c5954101014upb.html 1.截取字符串”20|http://www.621life.com“ 中 ‘|’字符前面及 ...

随机推荐

  1. Educational Codeforces Round 75 (Rated for Div. 2) B. Binary Palindromes

    链接: https://codeforces.com/contest/1251/problem/B 题意: A palindrome is a string t which reads the sam ...

  2. Connecting Graph

    Given n nodes in a graph labeled from 1 to n. There is no edges in the graph at beginning. You need ...

  3. json与java bean对象转换

    第一步:引入fastjson的依赖jar包 注:如果引入此版本的依赖,导致项目不能启动(报错:找不到启动类);那么可以换一个版本的fastjson即可. 给出文字版: <!-- fastjson ...

  4. 原生JS实现滑动验证功能

    一般很多网站都有滑动验证的功能,简单滑动验证的原理如下图所示: 主要理解思想就行 图中的代码可能和实际写的有所不同 HTML和CSS也可根据仔细的喜好就行修改 完整代码: <!DOCTYPE h ...

  5. SpringBoot监控中心

    1.什么是SpringBoot监控中心? 2.为什么要使用SpringBoot监控中心?

  6. java application指的到底是什么?

    在Java语言中,能够独立运行的程序称为Java应用程序(Application).Java语言还有另外一种程序——Applet程序.Applet程序(也称Java小程序)是运行于各种网页文件中,用于 ...

  7. 斜率dp的模板总结

    #include<cstdio> #include<algorithm> using namespace std; long long sumt[40005],sum[4000 ...

  8. python一些实用的小工具

    1  搭一个简易的本地局域网  python -m http.server 2 获取当前目录下的所有文件名 3 进度条效果 import sys,time for i in range(50): sy ...

  9. Java核心复习——J.U.C ArrayBlockingQueue源码分析

    介绍 依赖关系 源码 构造方法 public ArrayBlockingQueue(int capacity) { this(capacity, false);//默认构造非公平的有界队列 } pub ...

  10. Spring框架各模块功能介绍

    一. Spring是什么? Spring由Rod johnson开发: 是一个非常活跃的开源框架: 它帮助分离项目组件(对象)之间的依赖关系: 它的主要目的是简化企业开发 二. Spring的核心概念 ...