2014-09-26 12 views

답변

0

UIViewController *View=[[UIViewController alloc]init]; 

이 유 탐색 바 나를 위해이 코드

UINavigationController *nav=[[UINavigationController alloc]initWithRootViewController:View]; 

nav.modalPresentationStyle=UIModalPresentationFormSheet;(presentingModal view) 

[self presentViewController:nav animated:YES completion:nil]; 
+0

여전히 중복 .. – taman

+0

확인이 링크를 내 대답에 http를 참조하십시오 :로있는 viewDidLoad에 상태 표시 줄의 검은 색 배경을 설정 모달 뷰 컨트롤러

  • 로 제시 // 유래합니다. co.kr/questions/25781169/how-to-fix-status-bar-overlap-issue-in-ios-7/25781823 # 25781823이 링크도 확인하십시오. –

  • 0

    를 추가 할 필요 2.If, 그것은

    1. 에 의해 일
      있는 1.your의 ViewController이 코드를 사용해보십시오 탐색 막대와 다른보기를 20 픽셀 씩 내가보기에 밀었습니다.

      UIView *statusBarView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1024, 20)]; 
      statusBarView.backgroundColor = [UIColor blackColor]; 
      [self.view addSubview:statusBarView];