nib 파일이없는 viewcontroller
에 oneviewcontroller
을 푸시하는 방법은 무엇입니까?nib 파일이없는 다른보기 컨트롤러에 하나의보기 컨트롤러를 푸시하는 방법은 무엇입니까?
이것은 현재 내가하고있는 일입니다. 이 UserViewController
에 대한 nib 파일은 생각하지 아직 나는 아직도 어떤 도움 initWithNibName:@"UserViewController"
-(IBAction)userProfile:(id)sender {
UserViewController *userViewController = [[UserViewController alloc]
initWithNibName:@"UserViewController" bundle:nil];
[self.navigationController pushViewController:userViewController animated:YES ];
[userViewController release];
}
감사를 사용하고 있습니다!
nib 파일이 없으면 nib name을 제공하지 않아야합니다. 다음과 같이 View Controller를 누를 수 있습니다. UserViewController * userViewController = [[UserViewController alloc] init]; 프로그래밍 방식으로 뷰를 만들 수 있습니다. –