Tôi có một UIActionSheet
cho iPad trong đó có ba lựa chọn:UIStatusBarStyleBlackTranslucent không có sẵn trên thiết bị này
- Hủy
- Máy ảnh
- Thư viện ảnh
Khi tôi chạm vào "Thư viện ảnh "tùy chọn Tôi gặp sự cố và thông báo
UIStatusBarStyleBlackTranslucent không khả dụng trên thiết bị này.
Tôi đã đọc this post, nhưng không tìm ra.
Ai đó có thể giúp tôi không?
Cập nhật:
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 0)
{
imgController = [[UIImagePickerController alloc] init];
imgController.allowsEditing = YES;
imgController.sourceType = UIImagePickerControllerSourceTypeCamera;
imgController.delegate=self;
[self presentModalViewController:imgController animated:YES];
}
else if (buttonIndex == 1)
{
imgController = [[UIImagePickerController alloc] init];
imgController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imgController.delegate=self;
[self presentModalViewController:imgController animated:YES];
}
}
tôi nhận vụ tai nạn ở dòng cuối cùng tức là [self presentModalViewController:imgController animated:YES];
Đọc bài đăng nào? – BoltClock
Xin lỗi. Bỏ lỡ nó. Bây giờ đã chỉnh sửa. Hãy kiểm tra. – Nitish