There is a view with a button by clicking on which Segue opens another View. During the execution of the PrepareForSegue, an array of data is transferred to the target View.
let detailCatItemVC: DetailController = segue.destinationViewController as! DetailController detailCatItemVC.categorySelectArray = cleanDetailArray and the new View is still downloading and parsing a large amount of data, and all this time, the pressed button of the first View is shown on the screen until the second View with the processed data is displayed. It is naturally necessary to show the custom Activity Indicator with the text during all this "awesome" time. There is already a show function
progressBarDisplayer("Загрузка", true) and hide Activity Indicator
self.messageFrame.removeFromSuperview() but the whole thing does not work, where only the method of display didn’t shove, it still doesn’t work Code working, borrowed from stackoverflow
The problem is that the indicator should be shown during the transition.
How to redraw the application or where to poke a line of the display that would be guaranteed to see Activity Indicator?