uiimagepickercontroller opens but not displaying images ios 8 - ipad

I have an application in which i have to open image picker, it work fine in all devices and all iOS upto iOS 7.1.
But now i have iPad device with 8.0 beta 4 in this gallery opens but it doesn't display images although folder names are there. Even when i tap on blank white image from the gallery picker.It display the original image set in my imageView.
Here is some of my code ....
UIImagePickerController *pickerPhoto = [[UIImagePickerController alloc] init];
pickerPhoto.sourceType = UIImagePickerControllerSourceTypePhotoLibrary & UIImagePickerControllerSourceTypeSavedPhotosAlbum;
pickerPhoto.delegate = self;
[self presentModalViewController:pickerPhoto animated:YES];
I notice that my application is in compatible mode for iPad ,other universal app works perfectly.
here is some screen shots
1)http://tinypic.com/r/1z5rvid/8
2)http://tinypic.com/r/2d76o9/8

I think this problem in ios 8 Bcz of in iOS 8 open gallery only Universal Application please refer apple official document

Related

UIImagePicker on ipad simulator not full width

When viewing an image in a UIImagePicker on the iPad (using the simulator ios9) the selected image from the library is very small (see iPad example below). Now if the same image is selected on other devices (iPhone 5 .6 .6Plus) the selected image is always full screen (see below).
I have an iPad2 (non retina) and if I run my app on this device the image in a UIImagePicker is full size like on the iPhone.
So is this only a problem when running the iPad simulator?
I need the image to be full width like on the iPhone
Unfortunately it is a bug in iOS 9 not yet resolved
https://forums.developer.apple.com/thread/19999
I would recommend to develop a custom crop view controller

UIMediaPickerController under iOS 8

I've run into an issue with the media picker on iOS 8.
I have an iPad application, landscape mode supported only.
The following code works just fine under iOS 6 and iOS 7, but on iOS 8, it presents the media picker in landscape mode, but a vertical gradient line appears along the right side of the picker, where the portrait version would have its right edge. The picker works fine also to the right of this line, but I cannot figure out, how to make this gradient go away.
- (void) viewDidAppear:(BOOL)animated
{
MPMediaPickerController *mediaPicker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic];
[self presentViewController:mediaPicker animated:YES completion:^{
}];
}
I'd appreciate your expert help ;
In my case the solution was changing the Orientation in the Deployment info. I had to uncheck the "Landscape" box. Of course now the orientation is not fixed but at least the "black gradient" problem was solved.

Button Images Don't Show When Using Xcode 5

I have several buttons with images assigned to each. In Xcode 4.6 using the iOS 6 SDK, they show like they should. When using Xcode 5 with the iOS 7 SDK, the images are not there. In the xib it says an image is on the button but it doesn't appear. Any ideas why?
iOS 6:
iOS 7:
For me, my problem was that the button type was set to System instead of Custom. They displayed fine in iOS 6.0 and iOS 6.1 Simulators, just not iOS 7.0 simulator. I'm not sure how this happened as I'm pretty sure it's the first time the project had been opened in Xcode 5 with iOS 7.0 sdk. I had three buttons, 1 showed fine because it was a Custom button, and the other two did not show their images, but could be pressed. Once set to Custom button types, all worked great, as expected.
I was able to get the images to appear after setting the tint color to clear and setting the image and background image to what I wanted. In Xcode 4 I didn't have to change any of that and I didn't have to set the background image, just the image.
yes it is iOS7 issue.
Set bottom margin of the image/label through autolayout then try this code in your viewDidLoad and this should work.
if ([self respondsToSelector:#selector(setNeedsStatusBarAppearanceUpdate)])
{
[self prefersStatusBarHidden];
[self performSelector:#selector(setNeedsStatusBarAppearanceUpdate)];
}
else
{
// iOS 6
}

png images does not load with ios 5.1

I have few png images in my App and and i have placed it in the UIImageView of xib but the problem is the images loads fine with ios 6.0 simulator but the images are not visible in ios 5.1 simulator and my Xcode version is 4.5 same with my devices in ipad 3 it loads fine and ipad 1 it is invisible any problem with image resolutions
Make sure you add it with extension:
UIImage *image = [UIImage imageNamed:#"image.png"];

Retina iOS device does not show the #2X image, it shows the 1X image

Retina iOS device does not show the #2X image, it shows the 1X image.
I'm using Xcode 4.2.1 Build 4D502, the app is targeting iOS 5.
I've created a test app (Master/Detail) and added two images.
iconTest.png 24 x 24
iconTest#2X.png 48 x 48
Each image is unique so it I can easily tell which one is being displayed.
In the ViewDidLoad I'm adding a button to the navigation controller...
UIImage *buttonImage = [UIImage imageNamed:#"iconTest.png"];
UIBarButtonItem *button = [[UIBarButtonItem alloc]
initWithImage:buttonImage
style:UIBarButtonItemStyleBordered
target:self
action:#selector(share)];
self.navigationItem.rightBarButtonItem = button;
When I run this test app in the iOS Simulator it correctly displays the icon for a retina iOS device. In the simulator, the Hardware->Device-> is set to iPhone (Retina). And when I pause the app and look at the buttonImage object I can see the scale is set to 2.
This works as expected!
However, when I attach my iPhone 4 and run the app the lower resolution image shows up.
And, when I pause the app and look at the buttonImage object I can see the scale is 1.
This is not the expected behavior.
Any ideas about why this is different between the simulator and the real iOS device?
Is this a known issue? Is there a known workaround?
Thanks,
Brian.
Filenames are case sensitive on the iPhone but not on the iPhone Simulator. You need to use #2x instead of #2X.

Resources