开发者

Scrolled-menu UIComponenet in ios

开发者 https://www.devze.com 2023-04-08 20:04 出处:网络
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 touse a toolbar with button embedded with sc

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..

Scrolled-menu UIComponenet in ios


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.

0

精彩评论

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