UIBarButtonItem 就像 Facebook 的 Lines
如何制作像 Facebook 用于导航那样的 UIBarButtonItem?我尝试搜索并创建图像,但我就是无法让它看起来正确。这是我尝试制作的按钮的示例: 更改宽度UIBarButtonItem 和 什么是开发像 Facebook 新 iOS 应用程序那样的侧滑菜单的最佳方法是什么?
感谢任何帮助,并提前致谢。
How do you make a UIBarButtonItem like the one Facebook uses for their Navigation? I've tried to search and create an image, but I just can't get it to look right. Here's an example of the button I'm trying to make: Change the width of an UIBarButtonItem and What's the best way to develop a sideswipe menu like the one in Facebook's new iOS app?
Any help appreciated and thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建仅包含三条线或矩形的图像。设计起来应该非常简单。您甚至可以在预览中执行此操作。
UIBarButtonItem
仅使用 Alpha 通道。然后使用自定义图像
init
你的UIBarButtonItem
,它应该看起来像这样。You can create an image that just has the three lines - or rectangles. It should be pretty simple to design. You could even do it in Preview.
UIBarButtonItem
just uses the alpha channel.Then
init
yourUIBarButtonItem
with custom image and it should look like that.