Offscreen UIButton action not triggered - iOS

I have two

UIButton

's created off screen that are animated onto the screen when a button is pressed. However, neither of the button's target functions are never called, as I believe the buttons are not being "pressed". The buttons do work if I simply create them on the screen, so I believe the issue is related to the buttons being animated onto the screen from outside the screens bounds.

Edit: The buttons do animate onto the screen properly and are visible, however pressing them does nothing.

This is based off the assumption you are trying to move the box to the screen as a whole.

Edit:

Ahh! I see what is happening! So you are moving self.view up, which you never wanna move a UIViewController.view. Move a container of the view. So instead of moving self.view, move button_view. Moving a UIController.view removes all of the underneath layers and functionality of a UIViewController