Deleted the tap gesture and readded using the same code for both iPad and iPhone. Added comment to show where the problem is. Search for self.view.superview.