回答編集履歴

1

時間計測。

2016/04/11 04:29

投稿

fuzzball
fuzzball

スコア16731

test CHANGED
@@ -15,3 +15,63 @@
15
15
  Q2'-b. さらに、image関係の行をコメントアウトしてもカクつくでしょうか?
16
16
 
17
17
  Q3. nameLabelとscreenNameLabelに設定している文字列の長さはどれくらいでしょうか?
18
+
19
+
20
+
21
+ #時間計測
22
+
23
+
24
+
25
+ 最初の2行と最後の1行はそのままで、中身をそれぞれ1つだけの設定にした場合の時間を教えて下さい。
26
+
27
+
28
+
29
+ ##TextView
30
+
31
+
32
+
33
+ ```swift
34
+
35
+ cell!.TextView.text = tweet!["text"].stringValue;
36
+
37
+ ```
38
+
39
+
40
+
41
+ ##nameLabel
42
+
43
+
44
+
45
+ ```swift
46
+
47
+ cell!.nameLabel.text = tweet!["user"]["name"].stringValue;
48
+
49
+ ```
50
+
51
+
52
+
53
+ ##screenNameLabel
54
+
55
+
56
+
57
+ ```swift
58
+
59
+ cell!.screenNameLabel.text = "@" + tweet!["user"]["screen_name"].stringValue;
60
+
61
+ ```
62
+
63
+
64
+
65
+ ##iconImage
66
+
67
+
68
+
69
+ ```swift
70
+
71
+ let url : NSURL = NSURL(string:tweet!["user"]["profile_image_url"].stringValue.stringByReplacingOccurrencesOfString("normal", withString: "bigger"))!
72
+
73
+ cell!.iconImage.af_setImageWithURL(url,placeholderImage: UIImage(named: "icon_placeholder")!)
74
+
75
+ ```
76
+
77
+