Scrolled-menu UIComponenet in ios
i want to build a scrolled-me开发者_如何学JAVAnu uicomponent like the image given below.could u guys help me which is the best place to start.Am i supposed to use a toolbar with button embedded with scroll? any help is much appreciated..
I would use a UIScrollView
with your buttons as subviews. Forget about using UIToolbar
because that would make things very complicated (You can use an image to imitate the appearance of the toolbar).
Just make a UIScrollView
, add your buttons as subviews, and remember to set the contentSize
according with the number of buttons you have (numButtons*buttonWidth).
That's my approach, but maybe there's another good/elegant solution.
Here you'll find a PSD that will help imitating the toolbar.
精彩评论