uitableview - focus on UITextField then select UIButton xcode -


i want when focus on uitextfield change image of uibutton in front of uitextfield in uitableview. can possible?

you can notified when uitextfield gets focussed implementing uitextfielddelegate method textfielddidbeginediting:.

textfield.delegate = self; 

after implement method, reference of correct uibutton , change required image this.

-(void)textfielddidbeginediting:(uitextfield *)sender{     [yourbutton setimage:newimage forstate:uicontrolstatenormal]; } 

Comments