Swift
- 6 ответов
- 0 вопросов
5
Вклад в тег
appDelegate.getApiService(...).getRequests(...)
во viewDidAppear
. Present view controller'a не должен вызываться во viewDidLoad
.override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
tableView.reloadData()
}
protocol AddCategoryVCDelegate: AnyObject {
func addCategoryDismissed()
}
weak var delegate: AddCategoryVCDelegate?
dismiss(animated: true) {
self.delegate?.addCategoryDismissed()
}