我不确定我的做法哪里出了问题。文件名是正确的,样式设置为纯文本。但是我得到了一个大小与我的图像相同的白色空白框。我正在使用UINavigationController。
请帮忙解决,非常感谢。
**FYI 我对objective c有点陌生,所以别太苛刻了。 ;)
UIBarButtonItem *toolbarChannelGuideButton = [[UIBarButtonItem alloc]
initWithImage:[UIImage imageNamed:@"channel-guide-button.png"]
style:UIBarButtonItemStylePlain
target:self
action:@selector(action:)];
self.toolbarItems = [NSArray arrayWithObjects:toolbarChannelGuideButton, nil];
[toolbarChannelGuideButton release];