Skip to content

Commit 56f338d

Browse files
committed
Fix #13 => Add AACustomStageChartVC to main view controller
Introduced 'AACustomStageChartVC | 自定义分段图' to the chart list and navigation logic in MainVC. This allows users to access the custom stage chart demo from the main interface.
1 parent f82e118 commit 56f338d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

AAInfographics-ProDemo/Demo/MainVC.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class MainVC: UIViewController {
4646
"OfficialChartSample | 官方示例",
4747
"FractalChartListVC | 分形图表列表",
4848
"Custom Event2 | 自定义交互事件2",
49+
"AACustomStageChartVC | 自定义分段图"
4950
]
5051
private var chartTypeNameArr = [
5152
// "RelationshipChart | 关系类型图表",
@@ -155,6 +156,10 @@ class MainVC: UIViewController {
155156
[
156157
"Custom Event2---自定义交互事件2",
157158
],
159+
// "AACustomStageChartVC | 自定义分段图",
160+
[
161+
"AACustomStageChartVC | 自定义分段睡眠💤图",
162+
],
158163
]
159164

160165
override func viewDidLoad() {
@@ -296,6 +301,11 @@ extension MainVC: UITableViewDelegate, UITableViewDataSource {
296301
let vc = CustomClickEventCallbackMessageVC2()
297302
navigationController?.pushViewController(vc, animated: true)
298303

304+
case 11:
305+
let vc = AACustomStageChartVC()
306+
// vc.selectedIndex = indexPath.row
307+
// vc.navigationItemTitleArr = chartTypeNameArr[indexPath.section]
308+
navigationController?.pushViewController(vc, animated: true)
299309
default:
300310
break
301311
}

0 commit comments

Comments
 (0)