本文介绍了如何使这样的UIBarButtonItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何创建一个像这样的UIBarButtonItem:
How can I make a UIBarButtonItem like this:
我在SystemItem值中找不到它。
I can't find it in the SystemItem values.
感谢
推荐答案
这可能使用类似:
[[UIBarButtonItem alloc] initWithImage:@"info.png" style:UIBarButtonItemStyleBordered target:nil action:nil]
/ p>
I tried with:
UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:[UIButton buttonWithType:UIButtonTypeInfoLight]];
item.style = UIBarButtonItemStyleBordered;
但看起来像自定义视图边框样式不会应用。
but it seems like with a custom view the bordered style doesn't get applied.
这篇关于如何使这样的UIBarButtonItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!