" "
override func viewDidLoad() {
super.viewDidLoad()
let alertController = UIAlertController(title: "Wrong Item", message: "Could not find details of an item.", preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
present(alertController, animated: true, completion: nil)
}
2017-08-15 16: 27: 35.871 test [66719: 7754741] : , !
.
:
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
let alertController = UIAlertController(title: "Wrong Item", message: "Could not find details of an item.", preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
present(alertController, animated: true, completion: nil)
}
, .
, , , .
viewDidLoad() viewDidAppear (_:)
beginIgnoringInteractionEvents
viewDidAppear, , , :
viewdidload
DispatchQueue.main.async {
self.activityIndicator.stopAnimating()
UIApplication.shared.endIgnoringInteractionEvents()
}
( , ), viewDidAppear
, :
DispatchQueue.global(qos:.background).async
?