본문 바로가기
Developer/IOS

webview

by MindOpener 2013. 8. 20.
반응형

-(void)goWebView:(NSString *)url{

   

    [self.webViewController setStrWeburl:url];

    [self.webViewController.view setFrame:CGRectMake(0, self.webViewController.view.frame.size.height*(-1), self.view.frame.size.width, self.view.frame.size.height)];

    [self.view addSubview:self.webViewController.view];

    [UIView beginAnimations:nil context:nil];

    [UIView setAnimationDuration:0.5f];

    [self.webViewController.view setFrame:CGRectMake(0, 0, self.webViewController.view.frame.size.width, self.webViewController.view.frame.size.height)];

    [UIView commitAnimations];


}

반응형