iOS에 UINavigationController
에서 UIActionSheet
을 표시하려고합니다.iOS의 UIActionSheet 경고 메시지
내가 [action showInView:self.view];
을 사용할 때 그들은 다음과 같은 경고 메시지를 보였습니다.
Presenting action sheet clipped by its superview. Some controls might not respond to touches. On iPhone try -[UIActionSheet showFromTabBar:] or -[UIActionSheet showFromToolbar:] instead of -[UIActionSheet showInView:].
그러나 UIActionSheet가 올바르게 표시되고 아무런 변화가 없습니다.
내 iOS에서 다음 코드와 같은 가로 모드를 지원합니다.
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.0 ||
UIDeviceOrientationIsPortrait([[UIDevice currentDevice] orientation])) {
[action showInView:self.view];
} else {
[action showInView:self.view.window];
경고 메시지가 중요하다는 것을 알고 싶습니까?
경고 메시지를 무시해도됩니까?
탐색 컨트롤러에 도구 모음이 표시됩니까? 탭 막대가 포함되어 있습니까? 이 질문에 대한 답변을 토대로 적절한 "쇼 ..."방법을 사용하십시오. – rmaddy
이 메시지는 UIAlertView의 버튼을 UIToolBar로 덮을 수 있음을 의미합니다. 그냥 더 많은 버튼을 추가하려고하면, 당신은 그들 중 일부를 클릭 할 수 없을 것입니다 ... – Injectios