简体   繁体   中英

Changing images of toolbar buttons dynamicaly

我有一个带有按钮的工具栏,其按钮的图像被设置为特定图像。当用户单击主视图中的按钮时,我想将工具栏按钮之一的图像更改为另一图像。我尝试了许多方法。没有错误,但工具栏没有任何变化。有什么建议吗?

There is a tutorial for this: How-to-change-a-uibarbuttonitem-in-the-iphone-toolbar

This is a great tutorial because it goes over changing the images based on state as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM