In my app, there exist a scenario where I hide the bottom TabBar by [self.tabBarController.tabBar setHidden:YES] and later add a UIView containing UIButtons in the vacated area at the bottom of the view.
The area where the TabBar was will not respond to touch events so I can't select any of the buttons in the UIView.
I've done research on here and this question has been around for awhile but the old answers don't seem to work anymore. [self setNeeds Display]
and self.tabBarController.tabBar.translucent = YES
, do not work anymore as you still can't press the UIButtons. On a side note, I created my UIView with UIButtons in storyboards and put a bottom constraint to the superview. Please provide an answer known to work for iOS 9 and 10.
I created a test project to check the functionality that you want.
class ViewController: UIViewController {
}
As per your requirement, i created a uiview containing a UIButton as a subview and created a outlet for the button. As, i tab on on the button the action - tapped is triggered.