質問編集履歴
2
誤記
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
View Bでのタップイベントを検知したいのですが解決できずにいます。
|
4
4
|
|
5
|
-
以下のようなコードなのですが、
|
5
|
+
以下のようなコードなのですが、フッダーViewとしてCustomViewを直接返すとタップを検知してくれるのですが、、、サブビューのサブビューを検知するには他のことをやらないとダメなのでしょうか?
|
6
6
|
|
7
7
|
`
|
8
8
|
func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
|
9
|
-
let header =
|
9
|
+
let header = setFooterView()
|
10
10
|
return header
|
11
11
|
}
|
12
12
|
|
13
|
-
func
|
13
|
+
func setFooterView()->UIView {
|
14
14
|
// 他でも共通で使っているカスタムView
|
15
15
|
let customView = CustomView()
|
16
16
|
// カスタムViewのlabelのタップを検知したい
|
1
もれ
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,6 +5,11 @@
|
|
5
5
|
以下のようなコードなのですが、ヘッダーViewとしてCustomViewを直接返すとタップを検知してくれるのですが、、、サブビューのサブビューを検知するには他のことをやらないとダメなのでしょうか?
|
6
6
|
|
7
7
|
`
|
8
|
+
func tableView(tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
|
9
|
+
let header = setHeaderView()
|
10
|
+
return header
|
11
|
+
}
|
12
|
+
|
8
13
|
func setHeaderView()->UIView {
|
9
14
|
// 他でも共通で使っているカスタムView
|
10
15
|
let customView = CustomView()
|