Giant UIButton
is not a good solution to your problem. You can simply use UIGestureRecognizer
for this.
You can highlight the following:
UITapGestureRecognizer *tapImageRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissPopUp)];
Then just add a gesture to the views you want to respond to the selected selector.
[self.view addGestureRecognizer:tapImageRecognizer]
and possibly others
[self.navBar addGestureRecognizer:tapImageRecognizer];
Just remember to implement the method used by the gesture recognizer
-(void)dismissPopUp {
source share