ios5 - How to change UIbutton title once a UIbutton is pressed? -



ios5 - How to change UIbutton title once a UIbutton is pressed? -

i having problem changing title of uibutton btn2 1 time btn1 pressed. when utilize _definition settitle:@"show word" forstate: uicontrolstatenormal changes original btn1.

here code review,

- (ibaction)mynextpressed:(uibutton *)sender { //display string in label field [self.worddisplay settext:vocabulary]; //reset center button "show word" [_definitionpressed settitle:@"show word" forstate:uicontrolstatenormal]; nslog(@"displaying word: %@", _definitionpressed.titlelabel); }

try along lines of:

[btn2 settitle:@"show word"]

ios5 uibutton

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -