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
Post a Comment