How to find a UIImageView’s distance from top and bottom of the screen

I have a UIImageView on my view controller that moves up and down. I want to be able to figure out when the UIImageView touches the top of the screen and when it touches the bottom of the screen and run a function or something. I am using AutoLayout so I need it to work on multiple device sizes, i.e. an iPad or iPhone. Thanks in advance!

Powered by WPeMatico


You may also like...

Comments are closed.