How can I call a function when a specific condition is met ?

This is my first App


Im trying to create a similar user interface of the Apple Watch Home Screen for the iphone to practice.

I created this application on which you can scroll, zoom and press the buttons. I was doing find until I was unable to resize the button that are touching the edges of the screen. I tried to use the objects CGpoints to find if they are at the edges but could not trigger a event which could call a function if this condition was met.



Any Ideas ? 🙂


Tell me if you dont understand my question 😊

Answered by junkpile in 9551022

I don't understand your question.


Since you say your content scrolls and zooms, I assume you're using a UIScrollView... you can use the scrollViewDidScroll: or similar delegate methods to do tasks such as checking which of your content subview's frames are partially or completely outside the visible area.

Accepted Answer

I don't understand your question.


Since you say your content scrolls and zooms, I assume you're using a UIScrollView... you can use the scrollViewDidScroll: or similar delegate methods to do tasks such as checking which of your content subview's frames are partially or completely outside the visible area.

Thanks for helping me, this did solve my question

How can I call a function when a specific condition is met ?
 
 
Q