When i add UISwitch in IB it looks as it should. But when i run my app in 5.0 simulator or on 5.0 device, i get this:

If i run it on ios4 simulator everything looks ok. This a large project that has three20 included and was transformed to ARC with XCode.
What could be wrong?
What you get on iOS 5 is the new Switch Control.