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
}
Related
I have an existing project in iOS, it was working fine with till iOS 10,
After updating X-Code 9 , and run the project iOS 10 it is fine but in iOS 11 the UIImageview is not showing ..
I have already tried so many ways like clean derived data, reset clean build with quit x-code and restart system, remove and add image(png file), but noting happen.
Even i have added the background colour but the colour is also not showing in the device and simulator but it is in the storyboard .
one more thing ,,, the background image on UIButton is showing but on the image it is not displaying.
Is any one find solution ?
Kindly Debug through View hierarchy and Check Image Alpha Value. Remove This line of code from your project if not necessary -
[super setAlpha:0];
I have a custom tabBar in my Swift app that displays fine on all tested devices except one (iPhone 5 running iOS 9.3.2), where the selected item gets a different background color (see attached image). Any ideas what this might be caused by or how to debug it?
Update:
Tried another iPhone 5 also running iOS 9.3.2, and the same issue showed up... The issue doesn't show up on iphone 5c, 5s,6, 6s, ipod touch or in the simulator.
Solved it!
It turned out not be a bug after all, but caused by the phone's accessibility settings:
Settings > General > Accessibility > setting Button Shapes to OFF
=> Buttons are no longer outlined like in the screenshot!
I have an application which works for iOS 7 and 8 and I'm using auto layout so it will be ok on all iPhones. For iOS 7 I need the launch screen file but for iOS 8 I want to hide it.
How can I remove it specifically for iOS 8?
Thanks in advance :)
The launch screen is processed and displayed by iOS before anything else happens. You can't do anything programmatically to affect the launch screen as your code won't run until after the launch screen has been displayed.
So the only thing you can do is take advantage of the xib launch screen support introduced with iOS8, to provide two different launch screens: one for iOS8+ (the xib) and one for iOS7 and lower (the png).
In the HIG it says the following...
In iOS 8 and later, you can create a XIB or storyboard file instead of
a static launch image...
..
If you also need to support earlier versions of iOS, you can continue to supply static launch images in addition to a launch file.
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
After migration from Xcode 4.6.3 to Xcode 5 I had a lot of issue regarding the while UI stuff.
After compiling my application with SDK 7 (Deployment Target 6.1) my UIContainerViewbecomes grey. I've set the view background color of the container to white as well as the background color of the table view.
The old (original iOS 6 version had also a white background color)
Now it looks like this:
In iOS 7 it looks like expected:
I've found the solution.
Setting the background color doesn't work at all.
For Xamarin.iOS / Monotouch
TableView.BackgroundView = null;
Objective-C
[UITableView setBackgroundView: nil];