Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yaboy10holla

macrumors newbie
Original poster
Feb 19, 2011
17
0
in my app I have a textfield and a send button within a toolbar, and I want to enable the send button (UIBarButtonItem) when the textfield is in use, and disable it when it is not. Its being a little stubborn, however.

I set the button's state to disable in interface builder, and I'm trying to call this action:

[myBarButtonItem setEnabled:YES];

and im trying to connect it to the textfield's "did begin editing" event but i can't get it to work. Any suggestions??

thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.