Button background shown on iOS 5/5.1 instead of my background? - xcode

So in my app I am creating, when it is run in the simulator I see the white background images, instead of my transparent background I set. This is with an XIB and not a Storyboard for what it matters.
Examples:
iOS 5.1 and below:
iOS 6 and above:
Does anyone know why this is happening and how to fix this?

I fixed this problem by instead of using a transparent background png, setting the button type to custom, not rounded-rect. This fixed the problem with white backgrounds being shown.

Related

Background color of tabbar and alert messages are bright yellow after xcode update

I updated my xcode to 12.3 and it changed the background colors to bright yellow on Navigation Tab bar and alertviews.
I have them set to default colors and that appears to be light grey. The text and images remain black but I noticed that one of the images has gone to full color. Very weird.
Also the background color of the entire simulator, even the App Settings page, has turned bright yellow. I can change colors in the inspector panel (though the text tint does not change, always white) and it changes it on the xib screen but the simulator still shows the bright yellow background with the correct blue if selected and dark gray if not selected images and text.
The change effected every tab bar in the app. When run on actual device, the colors are normal. Translucent is checked. When unchecked the background color appears white.
Anyone give me advice on what to do here?
I ran into the same issue after install xcode 12.3. This is how to fix the issue.
Certain parts of the screen appear yellow in Interface Builder and the simulator.
First do this...
Open your Simulator and go to File > GPU Selection > Prefer Integrated GPU in
Then do this...
Quit Xcode and simulator
Unplug power cable
Restart Xcode and simulator
Check storyboard or simulator to confirm yellow tint is gone
Reconnect in power cable
Worked for me. Good luck
MacOS had an update and after I installed that, the colors reverted to normal.

Image with transparent background on Launchscreen.storyboard

I have a PNG with white text and transparent background on my Launchscreen.storybord. imageView backgound is set to transparent and alpha =1. But when I launch, background seems to become white:
Does anyone know how to solve it? I'm probaly missing a property on image inspector.
It was an Xcode bug. I cleaned the project, restarted Xcode and background became transparent.

Xcode Ipad Simulator Background Image Stretched

Whenever I run my app through any of the Ipad simulators in xcode, the background image is stretched or zoomed in and looks really abnormal. When I run the simulator for the Iphones the background image is fine. Does anybody know what might be causing this?
edit:
Please see the following screenshots of the launchimage (how it should look) and the background once the app is done loading.
My launchimage and how the background should look:
How the background looks once the app is done loading. Notice it is zoomed in:
I've noticed your original image has resolution of 2048x1536, which is Retina display's resolution.
Solution: Rename it adding a suffix of #2x (e.g.: if your image's called background.png, rename it to background#2x.png).

Iphone Simulator Xcode 6 on IOS 8 visualize two black bars

I have tried new app in Xcode 6 and not use storyboard. But when I have ran the app, with Iphone 5,5s,6 and 6 plus, in Iphone Simulator visualize two black bars on the top and below. Only Iphone 4s there aren't black bars.
Do you have an idea to resolve my problem?
Thanks
You need to add a Default-568h#2x.png image file that is 640x1136 to your project. I added an all black one that was in an older project. I didn't have to set anything else, which was nice. If you are building for iOS8 and later you can just use the LaunchScreen.xib instead.
In my case I was using jpg pictures for the default. Even though I had the correct file names and resolutions, it didn't work.
Switching from jpg to png solved it.
If you designed the app so that its views had the "old" screen size, and didn't design them to be responsive to different screen sizes, then the phone will add the black bars (known as a "letterbox", I think).

custom UIButton image is getting reduced (shrinked) in iphone OS 4.0

I am facing very strange issue.
When I was running my app in iPhone OS 3.2 the image which i have set for custom UIButton was looking like : (see attached image.) But when i tried to run the same project with iPhone OS 4.0 the image is changed.
alt text http://grab.by/5mes
alt text http://grab.by/5met
Can anybody figure it out, what 's the issue.
I also tried to set background image instead of setImage. But result is same.
for 3.2 & before its looking fine but in 4.O the image is shrinked in the same custom button everywhere like the image i have attached.
???
can you check with images those you are setting to UIButtons.
Please make sure images should not contains blank borders.

Resources