i am facing strange issue in one of my old app when running on iPhone 5s,6 and 6plus.i notice when i run the app on iPhone 5 and ipad its working fine,but when i run the same app in iPhone 5s or later devices all my app screens looks white and it did not showing any image in my entire app.All the other things like Label,tableview working fine on these devices.here is some screen shot of my app
As my screen shot shows every thing is ok in iPhone 5 simulator but when it comes to iPone 5S or later devices entire screen is white.Any help will be appreciated.
Find the answer..
UIImageView alpha is getting zero.
In my case, I am using category for UIImageView. I commented that and everything working alright now.
#implementation UIImageView (ForScrollView)
//- (void) setAlpha:(float)alpha {
// [super setAlpha:alpha];
//}
Related
I'm working on a iOS project and this one issue is bugging me for days. I have a simple webview wrapper in my application and the issue that I'm having is that if I use launch screen images and not the launch screen file the webview content gets badly scaled. I cannot relate why the launch screen images should have any impact on the webview that is being presented later. My goal IS to use the launch screen images.
This is mostly noticeable on iPhone 6 and iPhone 6 plus.
Example with launch screen images:
Example with launch screen storyboard:
Any advice is appreciated. Thank you.
This issue is because of the missing launch image for iPhone 6 and iPhone 6 plus. Make sure that you have added all the launch screen images.
I have a UIToolbar on the bottom of my app. On any device iPhone 5 and up it shows up correctly. On iPhone 4s and down it does not show on the screen at all. I have tried to add constraints but it is not helping. I am at a lose as to why this is happening. My app worked fine up until today. Any suggestions would be much appreciated.
I have an iPad app. When I used it in iOS 5 or 6 its working fine and the UI also seems to be fine. But the same in iOS 7 a black bar on top, bottom, left and right of the screen appeared. Including on the splash screen.
I had tried it by hiding status bar of all views.But I cant fix the issue.
- (BOOL)prefersStatusBarHidden
{
return YES;
}
Can any one know what is the reason?
The same thing happened to me as a result of downloading the latest version of Xcode
and all I had to do was adjust the frame of my view as it was altered during the download. It's so simple I didn't even think to try it.
How big are the bars? Is there any chance this is actually an iPhone retina app and this is iOS 7's new automatic scaling for the iPad's bigger display instead of the old '2x' mode?
Also, does it behave like this in the simulator and if so, can you post simulator shots of it running under iOS 6 and iOS 7?
See here for what I mean : http://www.iphonehacks.com/2013/07/ios-7-uses-retina-assets-of-iphone-only-apps-on-non-retina-ipad.html
I have an iOS 5 + app I am getting ready for iOS 7.
I have a standard TabBar based app loading in viewcontrollers, one of which loads in a webView.
This webview has a landscape and portrait mode as the app can be rotated, this works fine on all devices except iPad running iOS 7.
The issue being the webview is always displayed as landscape on iPad on iOS 7 irrespective of the orientation, iOS 7 gets rid of the 2x button that you used to get with iPhone apps running on an iPad so it is faux full screen.
The app opens in portrait mode, if I rotate the iPad everything else rotates - all other views adjust and reposition - except the html in the webview - it is stuck on landscape.
This happens on device and simulator
The question I suppose is why? has anyone else had experience of this?
Many thanks
Try setting constraints on the UIWebView. In the storyboard, look for the menu icons on the bottom right, and select the one that looks like a tie fighter. Then select 'Add Missing Constraints' or 'Reset to Suggested Constraints'. then when your View changes (orientation), the space constraints will adjust.
The way UIImageView autorotates some images and not others (or autorotates images at all) completely baffles me and I can't find the settings to turn off this autorotate behavior.
As a test I created a project using the iOS6 SDK targeted to iPhone 5 with the following steps:
I took a photo using my iPhone 4's front facing camera with portrait orientation
transferred it to my desktop using DropBox
imported it into my project and specified it in StoryBoard as the source for a UIImageView.
These are the layout settings for the imageView:
Running it in the simulator for the retina3.5 and iPhone 5 the image appears upright:
Running it in the simulator for the retina 4 I get this rotated image:
Obviously something odd is going on.
I am completely baffled and frustrated with this UIImageView auto-rotation. I've run into this before and spent fruitless hours trying to sort it out. I understand that images taken with the iPhone cameras have an orientation property. I don't understand why an image taken in portrait mode is not displaying in portrait mode in the retina 4 simulator.
Is there a way I can turn off this "help" from UIImageView?