Obj-C, how do I make my segmented control narrower in IB?
I can't seem to make my segmented control, which is within a tableview smaller?
I'm not sure what fixed and the width, which is default to auto does?
I can't change the width from开发者_如何学Python 320 either.
Heres a screen shot.
UIKit is going to resize a header view to be the full width of the table. Put the segment control in a view, and make that view the header view.
I find that when you put custom controls in a table view header or footer it is often best to place them on top of a separate UIView and make that UIView the actual header/footer.
精彩评论