UISegmentedControl not expanding size for navigation bar/very squished
Posted
by davetron5000
on Stack Overflow
See other posts from Stack Overflow
or by davetron5000
Published on 2010-05-29T20:12:51Z
Indexed on
2010/05/29
20:22 UTC
Read the original article
Hit count: 285
iphone
|uisegmentedcontrol
Running through an iPhone SDK book and one of the examples has me creating a table and then later adding a UISegmentedControl
to the table for sorting.
I dutifully did this in IB, and it looks great:
When I run it in the simulator or my phone, it's totally squished:
The buttons work perfectly, it's just they are not sizing according to their content. Any ideas what's going wrong?
Here's the attributes I have set:
© Stack Overflow or respective owner