ios - How to add Label on Bar Button Item? -
i have uibarbuttonitem taken using interface builder.
its outlet taken follow :
{ iboutlet uibarbuttonitem *itemnext, *itemprevious, *itemsubmit; } so in storyboard looks following image.
now, question how can add uilabel before rightbarbuttonitem item ?
note : uibarbuttonitem not on navigationcontroller set on bottom of screen shown in image.
i unable drag , drop uilabel on uibarbuttonitem can suggest me how can that?
uilabel can added subview uitoolbar or uinavigationbar.
you can add uibaritem. use settitletextattributes:forstate: on uibaritem attributed string properties similar uilabel.

Comments
Post a Comment