我正在開發通用應用程序。我已經實現了圖像選擇器和代碼,因爲它如下所示。UIImagePickerController iOS 8 + iPhone 4s屏幕問題
isimagepiking=TRUE;
imgPicker = [[UIImagePickerController alloc] init];
imgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
NSArray *mediaTypesAllowed = [NSArray arrayWithObject:@"public.image"];
[imgPicker setMediaTypes:mediaTypesAllowed];
imgPicker.delegate = self;
imgPicker.allowsEditing = YES;
imgPicker.wantsFullScreenLayout=true;
if(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPhone)
{
[self presentViewController:imgPicker animated:YES completion:nil];
}
婁代碼打印的大小。
NSLog(@"%f",imgPicker.view.frame.size.height);
這東西工程iphone 5+與iOS 8.3和下面的ios 7.1 iphone 4的罰款,但在iPhone 4S的爲IOS 8+選擇器不顯示選擇和取消按鈕
屏幕與ios 7.1 iphone 4s。
屏幕與iOS 8.2 iPhone 4S - 未顯示選擇或取消按鈕
好像在iOS的8+它以uiscreen尺寸4英寸。 任何人都可以請幫助我這個。
由於提前
檢查self.view的大小。它應該是4英寸高。 – Ritu
@Ritu感謝評論...我沒有檢查過它查看大小是預期的時候呈現pickerview – Satish
@Ritu在解除self.view大小是568這是預期的iphone 4s – Satish