回答編集履歴
1
時間計測。
answer
CHANGED
@@ -6,4 +6,33 @@
|
|
6
6
|
Q2. 質問に書かれている「テキストの分量が50文字くらいになると」というのはTextViewのことでしょうか?
|
7
7
|
Q2'-a. Q2がYesの場合、TextView.textに代入している行をコメントアウトしてもカクつくでしょうか?
|
8
8
|
Q2'-b. さらに、image関係の行をコメントアウトしてもカクつくでしょうか?
|
9
|
-
Q3. nameLabelとscreenNameLabelに設定している文字列の長さはどれくらいでしょうか?
|
9
|
+
Q3. nameLabelとscreenNameLabelに設定している文字列の長さはどれくらいでしょうか?
|
10
|
+
|
11
|
+
#時間計測
|
12
|
+
|
13
|
+
最初の2行と最後の1行はそのままで、中身をそれぞれ1つだけの設定にした場合の時間を教えて下さい。
|
14
|
+
|
15
|
+
##TextView
|
16
|
+
|
17
|
+
```swift
|
18
|
+
cell!.TextView.text = tweet!["text"].stringValue;
|
19
|
+
```
|
20
|
+
|
21
|
+
##nameLabel
|
22
|
+
|
23
|
+
```swift
|
24
|
+
cell!.nameLabel.text = tweet!["user"]["name"].stringValue;
|
25
|
+
```
|
26
|
+
|
27
|
+
##screenNameLabel
|
28
|
+
|
29
|
+
```swift
|
30
|
+
cell!.screenNameLabel.text = "@" + tweet!["user"]["screen_name"].stringValue;
|
31
|
+
```
|
32
|
+
|
33
|
+
##iconImage
|
34
|
+
|
35
|
+
```swift
|
36
|
+
let url : NSURL = NSURL(string:tweet!["user"]["profile_image_url"].stringValue.stringByReplacingOccurrencesOfString("normal", withString: "bigger"))!
|
37
|
+
cell!.iconImage.af_setImageWithURL(url,placeholderImage: UIImage(named: "icon_placeholder")!)
|
38
|
+
```
|