ios - How to change text of edit and done button in obcjective-c? -
i want change text of "edit" , "done" button on navigation bar, on ios app written in objective-c, how can that?
this want want.
uibutton *btncustome = [[uibutton alloc]initwithframe:cgrectmake(0, 0, 60, 30)]; [btncustome settitle:@"edit" forstate:uicontrolstatenormal]; [btncustome settitle:@"done" forstate:uicontrolstateselected]; uibarbuttonitem *rightbtn = [[uibarbuttonitem alloc]initwithcustomview:btncustome] ; self.navigationcontroller.navigationitem.rightbarbuttonitem = rightbtn;
Comments
Post a Comment