2012-08-16 1 views
-2

두 개의 ViewController가있는 응용 프로그램이 있습니다. 하나는 WebView가 있고 다른 하나는 버튼이 있습니다. 단추를 누를 때 다른 ViewController의 WebView에서 페이지를 옮기고 싶습니다.다른 ViewController에서 WebView를 탐색하는 UIButton

+1

일부 downvotes을 기대하십시오. 더 많은 분석을하고 자신의 질문에 더 많은 관심을 기울여야합니다. – Ravi

답변

0

웹에서 UINavigationController 예제를 검색하십시오.

버튼 클릭에
+0

댓글이어야합니다. – swiftBoy

0

,

-(void)ButtontnCliked:(UIButton*)sender 
{ 
    //create object of class to which you want to navigate. 

    NewView *viewController = [[NewView alloc]initWithNibName:@"NewView" bundle:nil]; //NewView is my new class 
    [self.navigationController pushViewController:viewController animated:YES]; // it will pushes your current view to newView. 
    [viewController release]; 
} 

참고 : rootViewController 가정 네비게이션 컨트롤러입니다.