I just created a UIStepper programmatically and added it to my view.
in IOS 5 simulator it is working fine.
In IOS 4.3 simulator it is not showing up. Ok, becuase it is not supported in 4.3 , it seems fine. But app is not getting crashed.
Can anyone explain why ??
Thanks
-Mia
So Stephen is correct to say you shouldn’t take what happens on the simulator as gospel, but in this case that’s not what’s happening.
The reason it doesn’t crash is that
UIStepperactually exists on iOS 4.3 – it’s just not implemented. It’s a private, undocumented class (you can view the 4.3 private framework headers here). Presumably Apple started integrating it into 4.3, but only made it public in 5. This happens a fair bit: gesture recognizers had been kicking around iOS for some time before they were publically released for iOS 3.2