how to show value on button of toolbar in objective-c?
问题 I am doing project of bill. there are many bills that i can scroll and each bill have many items with quantity and price. At the button, there are also many buttons on toolbar. Total Price of bill is 1 button among them, and i don't know how to show the number of total price on this button ! 回答1: A UIButton has a currentTitle-property and you should be able to get the title from that. A UIBarButtonItem has a possibleTitles-property which is an NSSet containing all possible titles the bar