Can I use a UIBarButtonSystemItem for a UIButton?(我可以为 UIButton 使用 UIBarButtonSystemItem 吗?)
问题描述
我正在尝试自定义 UIButton
并且我想使用 UIBarButtonSystemItem
样式可用于 UIBarButtonItem
对象.
I am trying to customize a UIButton
and I want to use a UIBarButtonSystemItem
style that is available for a UIBarButtonItem
object.
如何在 UIBUtton
对象上使用 UIBarButtonSystemItem
样式?
How do I use a UIBarButtonSystemItem
style on a UIBUtton
object?
推荐答案
你不能.UIBarButton 和 UIButton 是两个完全不同的类.您能做的最好的事情就是找到与您正在寻找的图像接近的图像并将它们添加到 UIButtons.
You can't. UIBarButton and UIButton are two completely different classes. The best you can do is find images close to what you're looking for and add them to UIButtons.
这篇关于我可以为 UIButton 使用 UIBarButtonSystemItem 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:我可以为 UIButton 使用 UIBarButtonSystemItem 吗?


基础教程推荐
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01