M
M
Mcalexvrn2015-04-11 22:17:51
Objective-C
Mcalexvrn, 2015-04-11 22:17:51

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

1 answer(s)
M
ManWithBear, 2015-04-11
@Mcalexvrn

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 question

Ask a Question

731 491 924 answers to any question