In iOS5
, it seems the width of a UISwitch
has changed from 94px to 79px
. I use the width of that component to calculate how for to the right, to place it in a UITableViewCell
.
Is there a way to ask, through the iOS API, what the width of a UISwitch
is, WITHOUT adding it to a view yet?
My current thoughts are to keep the two widths I already know in defines, and then check against iOS version, and if >=5
it should be 79px. But that won't work as well if the width of that component changes again sometime.