如何快速获取 scoop 中的变量以便我可以向其传递数据?
how do I get my serialnumberLabel in scoop of the itemsviewController when its in a different file and where would I put it because I'm new to swift I know very little please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该在
completionHandle
闭包中重新加载当前 tableView,并将text
存储在ItemsViewController
中,然后更新serialNumberLabel.text
中的>tableView(_:cellForRowAt:)
。You should reload current tableView in
completionHandle
closure and storetext
inItemsViewController
, then updateserialNumberLabel.text
intableView(_:cellForRowAt:)
.您需要按步骤更改逻辑:
步骤1:为表视图创建列表通用模型
步骤2:当您修改项目时,为表视图中的通用模型设置。
Step3:回调item时只能调用reload table view。
全部完成。
You need to change logic by steps:
Step1: Make a list common model for table view
Step2: when you modify item you set for model common in table view.
Step3: when you callback item you can only call reload table view.
All done.