interview:developer:ios:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
interview:developer:ios:start [2017/08/10 23:47] – created don.leeinterview: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的值为何?请解释。
  
 <code> <code>
Line 13: Line 14:
 </code> </code>
  
-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? 
 +  * 参考以下的代码,那里出错了?请解释。如何修复?
  
 <code> <code>
Line 27: Line 29:
 var result = op1 + op2 + op3 var result = op1 + op2 + op3
 </code> </code>
- 
-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? 
 +  * 参考以下的代码,那里出错了以及如何影响内存?如何修复?
  
 <code> <code>
Line 69: Line 70:
 </code> </code>
  
-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**? What is the advantage of setting it to a non-nil value?
 +  * 参考以下**UITableViewCell**构造数,**reuseIdentifier**的作用是什麽?把它设定为non-nil值有什麽好处?
  
-Consider the following **UITableViewCell** constructor: 
  
 <code> <code>
Line 81: Line 82:
 </code> </code>
  
-What is the purpose of the **reuseIdentifier**? What is the advantage of setting it to a non-nil value?+===== 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
  
 <code> <code>
Line 128: Line 136:
     }     }
 } }
 +</code>
  
 +<code>
 class ViewControllerTwo: UIViewController { class ViewControllerTwo: UIViewController {
          
Line 171: Line 181:
  
 </code> </code>
- 
-  * Write down the log results at 3 different cases 
-    * Start **MainViewController** 
-    * Push to **ViewControllerTwo** form **MainViewController** 
-    * User press back button from **ViewControllerTwo** 
  
  • interview/developer/ios/start.1502380075.txt.gz
  • Last modified: 2017/08/10 23:47
  • by don.lee