Very different UI results on iOS with the same code - ios

I have written same code and launched it on simulator iPhone 7 with iOS 10.3 and on my iPhone 6 with iOS 10.3.3 and I see some differences in there. I am sure you can see that too(the buttons are underlined, change color button has different background, etc.) . Why there is this difference? Can you help me out? Thanks a lot.

I think it's not an issue with your code. This issue is because you have switched on Settings > General > Accessibility Button shapes in iPhone 6.
Switch it off and the UI will become fine.

It looks like you have some of the accessibility options turn on on your iPhone 6. It looks like "Button shapes" is turned on.

Related

iOS tabBar button gets wrong background color

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!

Screen content is only shown in a part of screen in iOS Simulator

My iOS Simulator only show the content as a part of the screen. How can I fix it? I'm using XCode 6.3.1. Thanks
You just need to restart it. It can happen sometimes.
Force close simulator and start it again!
I am including this response for those, who like me, are seeking an solution for this problem after upgrading to Xcode 8.
The simulator began using only a portion of the display, as described in the question, when testing against iOS 8.x. The symptoms were that 1/4 of the display was showing if the window scale was set to 50%, 1/9 would show if the scale was set to 33%, etc. The entire display would show only if the scale was set to 100%, which is a real pain when using an iPad simulator.
The solution for me was to turn off "Optimize Rendering for Window Scale" under the "Debug" menu, which first seems to have appeared in Xcode 8. The 8.x simulators displayed properly after that.
Looking at the image..
I think it has something to do with the resolution/scale of the simulator.. I dont use Xcode 6.3.1 though...
since it's 5s the screen resolution/scale is x2.. so instead of 320x568 it must be 640x1136..
why dont you use the device frame rect to fill the screen? something like self.view.frame ?
its hard to guess what causing your problem,show us something that may help.. :)
Visit for more details:
iPhone Simulator Quarter or Top Left part of the screen[Fixed]
Watch the video from this link: iPhone Simulator - Quarter of the screen [Fix]
Step 1: “Force Quit” the iOS Simulator
Step 2: Open “Spotlight Search” and type “Chameleon Wizard” (if you installed Chameleon Bootloader)
Step 3: In that popup window, click on “org.chameleon.Boot”
Step 4: Uncheck display_0, Graphics Mode(Clear that Dropbox also), cpus=1, npci=0x3000, dart=0. Below shows an image with checked items those mentioned here. Just uncheck it all.
Step 5: Restart your Mac and try.

Different view appearances in iOS7/iOS8

In my app I need to support iOS 7 and iOS 8. I use Xcode 6. When I build app for iPhone 5s (iOS 8.0) it looks like this:
and it's right. But when I build app for iPhone 5s (iOS 7.1) it looks like this:
so button Done is missed and some black lines appeared. It looks like Xcode built app for iPhone 4. Maybe I forgot to set some properties and I can't understand what exactly properties I forgot. Any ideas?
You are missing the appropriate Launch images.
Edit: Just tested a new project and black bars disappeared just by clicking "Use Asset catalog" even if you don't actually set images.

iPad simulator 5.1 shows blank white screen in Xcode 4.3

Guys. Please help me.. I've searched everywhere, but couldn't find a solution.
I'm using Xcode 4.3.2 and have the IOS 5.1 simulator installed.
The problem is the iPad simulator doesn't show the iPad's frame, just the contents. So, the home button isn't visible, thus can't be pressed.
But, unlike the iPad simulator, the iPhone simulator works fine.
Please help, guys..
Thank you
Use ⇧ + ⌘ + h in place of the home button.
If you need to make the screen smaller, use ⌘+3 or ⌘+2 for the smallest and smaller screen sizes respectively.
Actually, I (and a colleague) have been seeing intermittent behavior, with the bezel sometimes showing up, and sometimes not, for the very same project (same version of iOS - 5.1, same build settings, etc). This happens even when simulator is set to show a normal (non-retina) iPad... sometimes it has the bezel, sometimes not.
So I doubt this is intentional design.... seems like a bug to us.......

UIBarButtonSystemItemPageCurl in iOS 5 beta missing

In my latest release application, everything looks good on iOS4+, but not on iOS5 Beta.
The only thing that is wrong is that the UIBarButtonSystemItemPageCurl is not shown on iOS5 devices. It shows an empty UIBarButtonItem with style Plain.
It looks good in IB in XCode 4.1, will test on my work computer as well on the BETA XCode tomorrow.
Does anyone know why this happens, or is this a bug in iOS5 beta?
EDIT
The question: If someone else found this too, how can I fix it (the correct way!)?
I'm still getting this issue with iOS 5.0 (non-beta). It looks like someone created their own page curl button here:
http://blog.shuningbian.net/2011/01/ios-toolbar-pagecurl-icon.html
Alternatively you can try using this tool to extract the icon from UIKit on a version 4 device:
https://github.com/0xced/UIKit-Artwork-Extractor
UIBarButtonSystemItemPageCurl can only be used in toolbars, at the bottom of the screen. Else the button is simply not displayed, like in a navigation bar.

Resources