2012-06-01 2 views
1

내 응용 프로그램이 이전 OS에서는 잘 작동하지만 5.1.1 (iPad2와 새 iPad에서 테스트 됨) 팝업이 나타나고 정상적으로 실행되지만 사용자가 팝업 외부에있을 때 닫히지 않습니다. 해고 코드 나 버튼을 사용하지 않습니다. 나는 iOS 5.0 SDK, Xcode 4.2를 사용하여 응용 프로그램을 컴파일했습니다. 여기에 그것을 보여주는 방법이 있습니다. 어떤 아이디어가 잘못 될 수 있습니까?iOS 5.1.1 Popover가 자동으로 해제되지 않습니다.

- (void)showNotifications { 

    NotificationsViewController *vc = [[[NotificationsViewController alloc] init] autorelease]; 
    vc.modalTransitionStyle = UIModalTransitionStyleCoverVertical; 

    if ([UIApplication isIPad]) { 

     vc.modalInPopover = YES; 
     self.popoverController = [[[UIPopoverController alloc] initWithContentViewController:vc] autorelease]; 

     [self.popoverController presentPopoverFromRect:bottomView.frame inView:[bottomView superview] permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES]; 

    } 
    else 
     [self presentModalViewController:vc animated:YES]; 

} 

답변

1

미스테리가 해결되었습니다. 그냥

//vc.modalInPopover = YES; must be no on iOS 5 

ModalInPopover는 여전히하지만 아이폰 OS 4에서 작동하는지 모르겠어요 아이폰 OS 5. false 여야 라인을 주석.

관련 문제