質問編集履歴
1
無駄なコメントアウトを削除
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -55,26 +55,20 @@
|
|
|
55
55
|
|
|
56
56
|
func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? {
|
|
57
57
|
if viewController.isKind(of: RecordViewController.self) {
|
|
58
|
-
// RecordPage -> TodayPage
|
|
59
58
|
return getTodayPage()
|
|
60
59
|
} else if viewController.isKind(of: TodayViewController.self) {
|
|
61
|
-
// TodayPage -> CalendarPage
|
|
62
60
|
return getCalendarPage()
|
|
63
61
|
}else{
|
|
64
|
-
// CalendarPage -> end
|
|
65
62
|
return nil
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController? {
|
|
70
67
|
if viewController.isKind(of: CalendarViewController.self) {
|
|
71
|
-
// CalendarPage -> TodayPage
|
|
72
68
|
return getTodayPage()
|
|
73
|
-
} else if viewController.isKind(of: TodayViewController.self) {
|
|
69
|
+
} else if viewController.isKind(of: TodayViewController.self) {
|
|
74
|
-
// TodayPage -> RecordPage
|
|
75
70
|
return getRecordPage()
|
|
76
71
|
}else{
|
|
77
|
-
// RecordPage -> end
|
|
78
72
|
return nil
|
|
79
73
|
}
|
|
80
74
|
}
|