UIView help

Discussion in 'iOS Programming' started by jagatnibas, Sep 2, 2008.

  1. macrumors regular

    Joined:
    Jul 28, 2008
    #1
    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
     

Share This Page