English 中文(简体)
UI BarButton 项目39 用SOS 5号图像播放的图像
原标题:UIBarButtonItemStyleDone background image using the iOS 5 appearance API

我怎么能为带有商品名称的州提供直观独一无二的酒吧背景图像 Edit/Doneutton的风格和编辑状况? 无国界医生组织没有记录到的国家价值中:就国家而言,似乎有trick。

问题回答

我不敢肯定为什么没有回答,但如果你仍在研究,那么就只是为你本人的“BarButtonItem”创造财产,在IB中分配财产,然后确定这一ButtonItem的背景财产。 对我的工作课以罚款,从来不“重新出现违约”。

- (void)viewDidLoad
{
    [super viewDidLoad];

    [self.barButton setBackgroundImage:[UIImage imageNamed:@"YOURIMAGE"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
}

I have just found and posted a possible solution to this problem. You can inject custom styles using a UIBarButtonItem category:

B. 关税同盟 项目“Done”风格和“Plain”风格分别使用UIAppearance





相关问题
Appearance profiles in Eclipse?

I use 2 monitors - 21" external and 15" laptop s screen. Everytime I swap the screens (e.g when taking laptop to school/home) I have to set up font s size (on exteranl screen I prefer bigger fonts on ...

change button appearance on click

I wahnt to change button appearance when it was clicked. <?xml version="1.0" encoding="utf-8"?> <s:Button xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/...

Consistent appearance for Windows Forms applications

Is there a way to apply consistent visual appearance for multiple Windows Forms applications? So that the same color scheme is used, etc? Or you have to do it manually? (I apologize for this question,...

Cant find the problem, IE appearance problem

I have this ajax_update script that updates file.php every 60 seconds.. Now file.php outputs this after updated a table: <div id="message" style="display: none;" onclick="closeNotice()">this ...

JLabel not greyed out when disabled, when HTML text displayed

How do I get a JLabel displaying a HTML string to appear greyed out (which is the behaviour of JLabels that don t display HTML text)? Is there another way than actually changing the colour myself by ...

热门标签