Y
Y
YeahCode2020-02-22 19:42:53
Swift
YeahCode, 2020-02-22 19:42:53

Bind UIImageView to UIView?

Guys tell
me How to bind UIImageVIew to UIView so that ImageView repeats the size, offset, movement of UIView

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Vorobei, 2020-02-22
@ivanvorobei

In the layoutSubviews method for UIView, write:
imageView.frame = view.bounds
PS It is not customary to ask questions on a toaster, the answer to which is in the first 25 Google links.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question