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

ryans79

macrumors regular
Original poster
Hello,

I'm just learning how to use xcode and IB so please excuse my question if its too newbie.

I have an action:

-(IBAction) textFieldDoneEditing: (id)sender
{
[sender resignFirstResponder];
//resignFirstResponder.sender;
//sender.resignFirstResponder;
}

and as it might be familiar to all of you, i am trying to get rid of the keyboard when the user clicks on "Done"... its working except not in dot notation... if i wanted to use dot notation instead of the "classic" way above, how would i do it?

(the commented ones are the ones i tried... needless to say, they dont work)

°°
 
That syntax should only be used for @properties. While it might work in some situations outside of that, it should be reserved for @properties only. So just use
Code:
[sender resignFirstResponder];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.