【发布时间】:2019-07-03 07:30:19
【问题描述】:
我正在尝试构建一个简单的应用程序,但令人惊讶的是我找不到任何可以帮助我的答案。
根视图将是一个 UINavigationController,我想在其中放置一个 UITableViewController,我将从字典中的数据中填充 UITableViewCells。当我单击其中一个 UITableViewCell 时,它也会将我重定向到另一个从我的字典中填充的 UITableViewController。
[
"name": "Functions",
"icon": "calculator",
"subcategories": [
[
"name": "Plan Leg",
"icon": "globe",
"subcategories": [
[
"name": "Heading & Groundspeed",
"destination": ""
],
[
"name": "Time & Distance",
"destination": ""
],
[
"name": "Fuel & Distance",
"destination": ""
],
]
]
]
]
例如,我想创建一个名为“Functions”的 TableViewController,其中一个 TableViewCell“Plan Leg”重定向到另一个 TableViewController,其中包含 3 个单元格“Heading & Groundspeed”、“Time & Distance”和“Fuel &距离”
【问题讨论】:
标签: ios json swift uitableview uinavigationcontroller