English 中文(简体)
iPhone Navigation Bar button, using custom image, done with Interface Builder
原标题:

iPhone application, which has two buttons -right side- of Navigation Bar title. I want to do this completely using Interface Builder and have had some limited success. The current problem is with buttons using custom image. All built-in images are ok, e.g. Info Light or Add Contact. Custom image just won t get visible.

alt text

Type: custom
Title: (empty)
Image: (empty)
Background: my_image.png

Any ideas what to try? Could it be that my PNG image is somehow wrong? Tried also images, which show ok on Tab bar. Please note that button highligh works ok. Just missing the image... Must be close, right?

alt text

最佳回答

EDIT: I read your question a bit too quickly the first time. I now see you re using a custom view for the UIBarButtonItem. Are you just simulating this through Interface Builder, or have you tried building your project and running it in the Simulator or on your device? I was able to successfully get a custom image in view in a UIBarButtonItem, though I had to build and run my project before I could see it (simulating it through IB wasn t enough).

问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签