I use the UISwitch control under iPad 5.0 and everything works fine. But if I run the app under iPad 4.3 that control shifted to the left.
In this sample both controls have the same autosizing mask and content mode.
Deployment Target: 4.3
Base SDK 5.0
Somebody can explain my problem.
Well, it’s not pretty… both UISwitch don’t have the same width.
I use to this code to try something :
And that give me the right placement in both simulator.
So This explain, but how to fixe this without that ugly piece of code.
This are the values of center and origin I got back in the NSLog.
Maybe the code from Apple is written so an App that was developed before iOS 5 would have it’s switch display correctly, but the inverse is not true…
I hope to see a better explanation.