Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
interview:developer:ios:start [2017/08/10 23:47] – created don.lee | interview:developer:ios:start [2018/06/04 12:37] (current) – don.lee | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Question 1 ===== | ===== Question 1 ===== | ||
- | Consider the following code: | + | * Consider the following code. What's the value of the **len** variable, and why? |
+ | * 参考以下的代码,len的值为何?请解释。 | ||
< | < | ||
Line 13: | Line 14: | ||
</ | </ | ||
- | What's the value of the **len** variable, and why? | + | |
Line 19: | Line 20: | ||
===== Question 2 ===== | ===== Question 2 ===== | ||
- | Consider the following code: | + | * Consider the following code. Where is the error and why? How can it be fixed? |
+ | * 参考以下的代码,那里出错了?请解释。如何修复? | ||
< | < | ||
Line 27: | Line 29: | ||
var result = op1 + op2 + op3 | var result = op1 + op2 + op3 | ||
</ | </ | ||
- | |||
- | Where is the error and why? How can it be fixed? | ||
===== Question 3 ===== | ===== Question 3 ===== | ||
- | Consider the following code: | + | * Consider the following code. What is the bug and how does it affect memory? How can it be fixed? |
+ | * 参考以下的代码,那里出错了以及如何影响内存?如何修复? | ||
< | < | ||
Line 69: | Line 70: | ||
</ | </ | ||
- | What is the bug and how does it affect memory? How can it be fixed? | ||
===== Question 4 ===== | ===== Question 4 ===== | ||
+ | * Consider the following **UITableViewCell** constructor. What is the purpose of the **reuseIdentifier**? | ||
+ | * 参考以下**UITableViewCell**构造数,**reuseIdentifier**的作用是什麽?把它设定为non-nil值有什麽好处? | ||
- | Consider the following **UITableViewCell** constructor: | ||
< | < | ||
Line 81: | Line 82: | ||
</ | </ | ||
- | What is the purpose of the **reuseIdentifier**? | + | ===== Question 5 ===== |
+ | * Write down the log results at 3 different cases | ||
+ | * Start **MainViewController** | ||
+ | * Push to **ViewControllerTwo** from **MainViewController** | ||
+ | * User press back button from **ViewControllerTwo** | ||
- | ===== Question | + | * 我们有以下兩段代码,请分别写下以下三种执行后log的结果 |
+ | * 开始 **MainViewController** | ||
+ | * 從 **MainViewController** 推向 **ViewControllerTwo** | ||
+ | * 用户在 **ViewControllerTwo** 按back button | ||
< | < | ||
Line 128: | Line 136: | ||
} | } | ||
} | } | ||
+ | </ | ||
+ | < | ||
class ViewControllerTwo: | class ViewControllerTwo: | ||
| | ||
Line 171: | Line 181: | ||
</ | </ | ||
- | |||
- | * Write down the log results at 3 different cases | ||
- | * Start **MainViewController** | ||
- | * Push to **ViewControllerTwo** form **MainViewController** | ||
- | * User press back button from **ViewControllerTwo** | ||