I have FirstViewController used to identify user. After user writes data and presses button, request goes to server, if response if positive, I want to open SecondViewController, which contains UIImageView (it's image is declared in Assets).
So when I try to
self.performSegueWithIdentifier("openSecond", sender: self)
UIImageView is empty. After some time image loads by itself (or if I switch its Highlighted parameter).
If I try to open SecondViewController by button click (using same segue, but from InterfaceBuilder) it opens immediately and the UIImageView shows its image.
There is my UIImageView configuration:
How can I fix this?