質問編集履歴
5
加筆
test
CHANGED
File without changes
|
test
CHANGED
@@ -148,14 +148,6 @@
|
|
148
148
|
|
149
149
|
|
150
150
|
|
151
|
-
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
|
152
|
-
|
153
|
-
return 60
|
154
|
-
|
155
|
-
}
|
156
|
-
|
157
|
-
|
158
|
-
|
159
151
|
}
|
160
152
|
|
161
153
|
```
|
4
加筆
test
CHANGED
File without changes
|
test
CHANGED
@@ -150,7 +150,7 @@
|
|
150
150
|
|
151
151
|
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
|
152
152
|
|
153
|
-
return
|
153
|
+
return 60
|
154
154
|
|
155
155
|
}
|
156
156
|
|
3
加筆
test
CHANGED
File without changes
|
test
CHANGED
@@ -91,3 +91,71 @@
|
|
91
91
|
※バージョン
|
92
92
|
|
93
93
|
iOS8, Swift1.2
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
ーーーーーーーーーーーーーーーーーーーーーーーーーーーー
|
100
|
+
|
101
|
+
【追記】
|
102
|
+
|
103
|
+
Stripeさんへ
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
Stripeさんへ
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
```swift
|
116
|
+
|
117
|
+
import UIKit
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
class TestTableViewController: UIViewController, UITableViewDelegate, UITableViewDataSource{
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
var tableView = UITableView(frame: CGRectZero, style: .Grouped)
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
override func viewDidLoad() {
|
130
|
+
|
131
|
+
super.viewDidLoad()
|
132
|
+
|
133
|
+
let displayWidth = self.view.frame.width
|
134
|
+
|
135
|
+
let displayHeight = self.view.frame.height
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
tableView = UITableView(frame: CGRect(x:0, y:0, width:displayWidth, height:displayHeight))
|
140
|
+
|
141
|
+
tableView.estimatedRowHeight = 60
|
142
|
+
|
143
|
+
tableView.rowHeight = UITableViewAutomaticDimension
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
|
152
|
+
|
153
|
+
return 50
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
```
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
UILabel①(高さ固定)
|
24
24
|
|
25
|
-
UIImage UILabel②(高さ
|
25
|
+
UIImage UILabel②(高さ可変)
|
26
26
|
|
27
27
|
UILabel③(高さ固定)
|
28
28
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,11 +20,11 @@
|
|
20
20
|
|
21
21
|
ーーーーーーーーーーーーーーー
|
22
22
|
|
23
|
-
|
23
|
+
UILabel①(高さ固定)
|
24
24
|
|
25
25
|
UIImage UILabel②(高さ固定)
|
26
26
|
|
27
|
-
UILabel③(高さ固定)
|
27
|
+
UILabel③(高さ固定)
|
28
28
|
|
29
29
|
ーーーーーーーーーーーーーーー
|
30
30
|
|