【发布时间】:2014-01-21 08:15:22
【问题描述】:
我正在创建 UIActionSheet 以允许用户拍摄或选择照片。谁能告诉我为什么它的显示与苹果的不一样?这是针对 iPad 的,所以我没有声明取消按钮。
UIActionSheet *actionSheet = [[UIActionSheet alloc] init];
actionSheet.delegate = self;
[actionSheet addButtonWithTitle:NSLocalizedString(@"choosePhotoPopoverButton", @"Choose Photo - Get a photo from the album.")];
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]){
[actionSheet addButtonWithTitle:NSLocalizedString(@"takePhotoPopoverButton", @"Take Photo - Use camera to take photo.")];
}
[actionSheet showFromRect:self.imageView.frame inView:self animated:YES];
Apple 的通讯录应用。边距紧缩。行之间的线。
我的工作应用示例。底部有额外的填充物。行与行之间没有线。
感谢您的任何见解。
【问题讨论】: