1

UIModalPresentationFormSheet의 모든 예제에서 presentModalViewController가 사용됩니다. 그러나 설명서에 따르면 iOS 6.0에서는 presentModalViewController가 더 이상 사용되지 않습니다. 그러나 UIModalPresentationFormSheet가 pushViewController와 함께 표시되는 예제는 표시되지 않습니다.iPad UIModalPresentationFormSheet에 pushViewController 또는 presentModalViewController를 사용해야합니까?

어느 것을 사용해야합니까? 모든

+0

가능한 중복 http://stackoverflow.com/questions/14746407/presentmodalviewcontroller-in -ios6) –

+0

'presentModalViewController :'에 대한 문서를 보라. 대신 사용할 내용을 보여줍니다. – rmaddy

답변

1

먼저, 컨트롤러의 presentationStyle에게

controllerToBePresented.modalPresentationStyle = UIModalPresentationFormSheet; 

을 설정 한 다음

[self presentViewController:controllerToBePresented animated:YES completion:^{ 
}]; 
[iOS6의에서 presentModalViewController] (의