나는 iOS
을 처음 사용하며 UIActionSheet
에 관한 문제에 봉착했습니다.ipad의 하단에 UIActionSheet를 어떻게 표시합니까?
내 코드는 다음과
-(IBAction)picimgbtnClick:(id)sender
{
UIActionSheet *popup = [[UIActionSheet alloc] initWithTitle:@"Profile Photo" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:
@"Gallery",
@"Camera",
@"Remove Photo",
nil];
popup.tag = 1;
[popup showInView:self.view];
}
이 아이폰에 완벽하게 작동하지만 아이 패드에서이 작업을 실행할 때 UIActionSheet
중간에 나타납니다 같다 (아래 이미지 참조) 또한 취소 쇼하지 않습니다 버튼는 :
,이 같이 나타납니다 :
ipad의 기본 동작입니다. 당신은 그것을 바꿀 수 없다 –
@balkaran 그래서 그것에 대한 대안? – Muju
당신은 UIPopoverController를 사용할 수 있습니다. –