0

기본적으로 iOS 7에서 팝업을 통해이를 관리 할 수 ​​있었기 때문에 특정 크기와 위치의 사용자 정의 모달보기를 표시하려고합니다.하지만 iOS에서 변경되는 것처럼 보입니다 소지품.UITableView가 UIModalPresentationCustom에서 경계를 수정 한 후에 상호 작용하지 않음

나는 다음에 이것을 달성하기 위해 관리 :

발표 : UpViewController.m에서

  UpViewController *upViewController = [[UpViewController alloc] init]; 
      upViewController.delegate = self; 

      UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:upViewController]; 

      navigationController.modalPresentationStyle = UIModalPresentationCustom; 

      [self presentViewController:navigationController animated:YES completion:nil]; 

: 내 모달 뷰가 발표 된 후

- (void)viewWillLayoutSubviews 
{ 
    [super viewWillLayoutSubviews]; 

    self.navigationController.view.superview.bounds = CGRectMake(-350, -30, 320, screenSize.height-(44+20)); 

} 

내 문제입니다. 우리는 뷰에 추가 된 UITableView와 상호 작용할 수 없다. 누구나이 문제가 발생 했습니까?

답변

0

내가 경계를 설정하는 대신 내 자신의 솔루션 을 찾을 것 같다, 나는 navigationController.view.frame 설정 :

- (void)viewWillLayoutSubviews 
{ 
    [super viewWillLayoutSubviews]; 

    self.navigationController.view.frame = CGRectMake(screenSize.width-320, 44, 320, screenSize.height-(44)); 

}