Hi in my application I'm displaying the UIview as a popup when user click the button now the problem is its 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 view did load 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.
No comments:
Post a Comment