PDA

View Full Version : UIView help




jagatnibas
Sep 2, 2008, 02:03 PM
Hi all,
I have already a webview on top of which i want to draw an uiview. this uiview should display when i click on the webview.

i guess i might have to something like this

UIView* myView = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 300.0, 300.0)];
myView.center = self.center;
self.iView = myView;
[myView release];
[self addSubview:iView];


doubts.
1. I want to only display when it is clicked on UIWebview on that location
2. when tapped other place it should hide.

please give me some ideas

regards
Jagat