开发者

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.

Obj-C, how do I make my segmented control narrower in IB?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜