質問編集履歴
7
タイトルを編集
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
別プロジェクトのインスタンス生成する方法
|
1
|
+
[Swift] 別プロジェクトのインスタンス生成する方法
|
body
CHANGED
@@ -13,8 +13,8 @@
|
|
13
13
|
│
|
14
14
|
SamplePJB
|
15
15
|
└── View
|
16
|
-
|
16
|
+
-- │
|
17
|
-
|
17
|
+
-- └──A_ViewController.swift
|
18
18
|
|
19
19
|
|
20
20
|
|
6
テキストを修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
|
22
|
-
- B_ViewController
|
22
|
+
- B_ViewController.swift
|
23
23
|
```
|
24
24
|
let AAA:UIView = A_View(self.bounds, ad: self.ad!, delegate: self)
|
25
25
|
```
|
5
タイトルを変更しました。
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
別プロジェクトのインスタンス生成する方法
|
body
CHANGED
File without changes
|
4
余計な文字を削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,8 +23,8 @@
|
|
23
23
|
```
|
24
24
|
let AAA:UIView = A_View(self.bounds, ad: self.ad!, delegate: self)
|
25
25
|
```
|
26
|
-
リスト
|
27
26
|
|
27
|
+
|
28
28
|
- A_View.swift
|
29
29
|
```
|
30
30
|
import UIKit
|
3
マークダウンを使用するように修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,17 +19,14 @@
|
|
19
19
|
|
20
20
|
|
21
21
|
|
22
|
-
↓ エラー内容 : Use of unresolved identifier 'A_View'
|
23
|
-
|
24
|
-
|
22
|
+
- B_ViewController
|
25
|
-
|
23
|
+
```
|
26
24
|
let AAA:UIView = A_View(self.bounds, ad: self.ad!, delegate: self)
|
25
|
+
```
|
26
|
+
リスト
|
27
27
|
|
28
|
-
——————————————————————
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
- A_View.swift
|
32
|
-
|
29
|
+
```
|
33
30
|
import UIKit
|
34
31
|
|
35
32
|
public class A_View: UIView {
|
@@ -41,9 +38,8 @@
|
|
41
38
|
self.frame = frame
|
42
39
|
self.ad = ad
|
43
40
|
}
|
44
|
-
|
45
41
|
}
|
46
|
-
|
42
|
+
```
|
47
43
|
|
48
44
|
|
49
45
|
何がいけないのか原因がわからなく、教えていただければと思います。
|
2
記述を間違えていた為
title
CHANGED
File without changes
|
body
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
import UIKit
|
34
34
|
|
35
|
-
public class
|
35
|
+
public class A_View: UIView {
|
36
36
|
|
37
37
|
var uiControlView: UIView?
|
38
38
|
|
1
スペルが間違えていた為
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
———B_ViewController———
|
25
25
|
|
26
|
-
let
|
26
|
+
let AAA:UIView = A_View(self.bounds, ad: self.ad!, delegate: self)
|
27
27
|
|
28
28
|
——————————————————————
|
29
29
|
|
@@ -32,11 +32,11 @@
|
|
32
32
|
|
33
33
|
import UIKit
|
34
34
|
|
35
|
-
public class
|
35
|
+
public class BBBB: UIView {
|
36
36
|
|
37
37
|
var uiControlView: UIView?
|
38
38
|
|
39
|
-
public init(frame: CGRect, ad:
|
39
|
+
public init(frame: CGRect, ad: Ad, delegate: AA_ViewDelegate) {
|
40
40
|
super.init(frame: frame)
|
41
41
|
self.frame = frame
|
42
42
|
self.ad = ad
|