I have an object that falls from the top of the screen however i want it to come back up after the bottom of the object reaches the bottom of the screen. This is my code at the moment. I tried adding another image view to trigger the up motion by collision. The timer is in ViewDidLoad
hammer.center = CGPointMake(hammer.center.x, hammer.center.y + 12);
if (CGRectIntersectsRect(hammer.frame, floor.frame)) {
hammer.center = CGPointMake(hammer.center.x , hammer.center.y -50);
}