回答編集履歴
1
追記
test
CHANGED
@@ -1 +1,17 @@
|
|
1
1
|
`TabPageViewController` クラスにも `currentIndex` というプロパティがあるみたいですが、そちらを使ってみてはどうでしょうか?
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
追記:
|
6
|
+
|
7
|
+
あれ?githubのコード見るとprivateじゃないのにな…と思ったら過去のバージョンではprivateだったみたいですね。
|
8
|
+
|
9
|
+
TabPageViewControllerのバージョン0.1.1以前はprivateで、バージョン0.2.0以降ではprivateが外れています。
|
10
|
+
|
11
|
+
[v0.1.1](https://github.com/EndouMari/TabPageViewController/blob/0.1.1/Pod/Classes/TabPageViewController.swift#L20)
|
12
|
+
|
13
|
+
[v0.2.0](https://github.com/EndouMari/TabPageViewController/blob/0.2.0/Pod/Classes/TabPageViewController.swift#L20)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
対応としては `TabPageViewController` のバージョンを上げるか、currentIndexと同じロジックを実装する(currentIndex内ではpublicのプロパティしか使っていないみたいなので)しかないんじゃないでしょうか。
|