English 中文(简体)
不同的UITool Bar/UINavigaton B. 搜查UIText Field时的律师协会
原标题:Different UIToolBar/UINavigatonBar when tapping UITextField

因此,我拥有一支由下游和后ton子组成的纳巴禁运主计长,使用固定的Left BarButtonItem,并设置了BarButtonItem。 我在下表中列出了一些案文领域:当有人在案文领域作主时,我想要改变bar,以改变bar。

a) remove or hide the Cancel and Save buttons b) add a done button to close the keyboard or datepicker

When using setRightBarButtonItem/setLeftBarButonItem I can t actually remove or hide the Cancel/Save buttons... only disable them.

因此,我的问题是,当有人用一个文字现场显示不同的纽埃勒巴拉时,我怎么能表现出不同的乌托勒巴拉?

问题回答

首先,如果你已经这样做,你想要再设置一个工具。 改变工具条形名称,使用相同的纽州。

应采取的步骤。

  1. add Delegate to textfields. (So you can use textfield delegate methods to change the title name of buttons when textfield begins editing & ended.)

2.performing action on left & right button check for the condition. i.e

UIBarButton *the_button = (UIBarButton *)sender;

if([[the_button.currentTitle] isEqualToString:@"Save"])
{
//perform some action
}

else 
{
//perform else condition
}




相关问题
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风格的解决办法,只是一个简单的袖珍流程......

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

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

热门标签