Answer the question
In order to leave comments, you need to log in
Why doesn't UIImageView.center calculate actual values?
Hello! Today I encountered such a problem - there are several UIImageViews on the ViewController, when calling for any of them, .center.x returns 120.0, and .center.y returns 64.0, wherever I place them. What can be connected with and how to get up-to-date information about the location of the image on the View?
I'm posting the UIImageView using the Storyboard, not code.
Answer the question
In order to leave comments, you need to log in
I can assume that you are checking the center in the viewDidLoad method? And they contain a picture of 240 by 128?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question