【发布时间】:2022-07-29 17:24:35
【问题描述】:
这里是my code on GitHub that has screen shots of what I am trying to accomplish and what I currently have。
我关注this YouTube video 想出了我现在拥有的东西。
Using data from this api,我通过从 model.swift 文件中导入数据和内置的 JSON 解析器构建了一个表。现在我试图让用户查看有关他们选择的标题的更多信息。此 api 的数据如下所示:
[
{
"userId": 1,
"id": 1,
"title": "delectus aut autem",
"completed": false
},
{
"userId": 1,
"id": 2,
"title": "quis ut nam facilis et officia qui",
"completed": false
},
...cont...
]
现在我认为到达我想要的位置的方法是添加一个“cocoatouch 类”视图控制器,并向该文件中添加代码以更改标签字段。但是,我不确定要在这个名为“title_details_ViewController.swift”的 cocoatouch 类视图控制器中添加什么样的代码。我知道它必须以某种方式连接到我的名为“模型”的文件...
【问题讨论】: