質問編集履歴

1

書式の改善

2019/05/03 06:59

投稿

QNe6lK8f
QNe6lK8f

スコア12

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,59 @@
7
7
 
8
8
 
9
9
  カスタムクラス内のIBアクションが反応しないため、デリゲート等の設定がございましたらご教授ください。
10
+
11
+
12
+
13
+ Main.storyboad.swift
14
+
15
+ > First scene
16
+
17
+ >> VIew
18
+
19
+ >>> Scroll View
20
+
21
+ >>>> Container View (Test View Controller scene)
22
+
23
+
24
+
25
+ > Test View Controller scene (カスタムクラス -> TestViewController.swift)
26
+
27
+ >> VIew
28
+
29
+ >>> B (printButton)
30
+
31
+
32
+
33
+ TestViewController.swift
34
+
35
+
36
+
37
+ ```swift
38
+
39
+ import UIKit
40
+
41
+ class TestViewController: UIViewController {
42
+
43
+ @IBAction func testUiActionButton(_ sender: Any) {
44
+
45
+ self.printButton()
46
+
47
+ }
48
+
49
+ override func viewDidLoad() {
50
+
51
+ super.viewDidLoad()
52
+
53
+ }
54
+
55
+ func printButton(){
56
+
57
+ print("test")
58
+
59
+ }
60
+
61
+ }
62
+
63
+
64
+
65
+ ```