모덜로 표현해야합니다.
[pickerContainer setModalPresentationStyle:UIModalPresentationCurrentContext];
[self presentModalViewController:pickerContainer animated:YES];
그리고 호출 할 때이 작업을 수행 이는 완료/선택/등 버튼을 넣어 :
[self dismissModalViewControllerAnimated:YES];
편집 : 다른 옵션은 테이블 뷰와 또 다른 숨겨진 모두 부모 UIViewController
을 가지고 전망. (테이블 뷰의 상위 계층) 화면 하단 떨어져 당신의 숨겨진 뷰의 위치를 컨트롤이 비활성화 시작 있는지 확인 한 다음 전화 :
[UIView animateWithDuration:1.0 /* set number of seconds it takes to slide here */
animations:^
{
[pickerContainer setFrame:/*the position you want it to slide in to*/];
}
completion:^(BOOL finished)
{
[pickerContainer.picker setEnabled:YES]; // only enabled once the animation is done
[pickerContainer.doneButton setEnabled:YES]; // same for the button to close the view
}];
을 사용자가 날짜를 선택 완료 지시 할 때, setFrame:
을 사용하여 뷰의 원래 위치로 다시 애니메이션을 적용하여 슬라이드 아웃하고 컨트롤을 비활성화하십시오.
전체 화면이 표시됩니까? 차라리 그걸 내 시야의 바닥을 덮도록 해줄거야. – cgossain
Ah. 그런 다음 모달이 당신을 위해 작동하지 않습니다. – darvids0n
괜찮습니다. 귀하의 답변에 감사드립니다. – cgossain