2013-01-06 3 views
0

UINavigationController를 ipad의 상단 가장자리에 배치하는 방법은 무엇입니까?UINavigationController 위치 지정 방법

HomeScreenViewController *controller = [[HomeScreenViewController alloc] initWithNibName:@"HomeScreenViewController" bundle:nil]; 

[self.view addSubview:controller.view]; 
+0

펜촉의 크기를 확인하십시오. 화면보다 작아 보입니다. – ipinak

답변

0

당신은 사용할 수 있습니다 .. 내가 메인 화면을 표시하려면이 명령을 발행 할 것이다 .. 내가 버튼을 클릭하면

enter image description here

내가, 로그인 화면이 ... 아래 스크린 샷 참조하시기 바랍니다 setFrame (메시지)을 클릭하여이보기 컨트롤러의 위치를 ​​변경합니다.

CGRect frame = [controller.view frame]; 

// or as much as you like or (-) depending where you want to move it. 
frame.origin.y += 100; 
[controller.view setFrame:frame]; 
관련 문제