質問編集履歴
2
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
let cell = UITableViewCell(style: .subtitle, reuseIdentifier: "cell")
|
40
40
|
cell.accessoryType = .detailButton
|
41
41
|
cell.textLabel?.text = "セル\(indexPath.row + 1)"
|
42
|
-
cell.detailTextLabel?.text = "\(indexPath.row + 1)
|
42
|
+
cell.detailTextLabel?.text = "\(indexPath.row + 1)"
|
43
43
|
|
44
44
|
return cell
|
45
45
|
}
|
@@ -53,7 +53,7 @@
|
|
53
53
|
|
54
54
|
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
55
55
|
|
56
|
-
print("
|
56
|
+
print(": \(indexPath.row)")
|
57
57
|
}
|
58
58
|
|
59
59
|
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) {
|
64
64
|
|
65
|
-
print("
|
65
|
+
print(": \(indexPath.row)")
|
66
66
|
}
|
67
67
|
}
|
68
68
|
コード
|
1
変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
ViewControllerSwiftに書いたコードが実機では反映されるのですが、storyboardで反映されません。
|
2
|
+
|
3
|
+
|
4
|
+
Clean や Clean Build FolderあとReset Content and Settingsも試しましたが変化なしです。
|
5
|
+
|
2
6
|
```import UIKit
|
3
7
|
|
4
8
|
class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
|