In my application I'm displaying the UIView
as a popup when user click the button now the problem is it's not dismissing when click somewhere in the application please tell me how to dismiss the UIView
popup.
Here is the code which user for popup.
- (void) showPopView
{
self.popview.alpha = 1;
[self.popview setFrame:CGRectMake(15, 100, 300, 300)];
//[self dismissPopoverAnimated:NO];
}
Popup Button code.
- (IBAction)click:(id)sender {
[self showPopView1];
}
In viewDidLoad
i have used this code.
self.popview.alpha = 0;
The above code i have used to display UIView
as a popup please tell how to dismiss the popup when user click outside.
Thanks.