开发者

problem to give colors for BarButtonItem

i have a ToolBar in my view cont开发者_Python百科roller.i need to show one icon in right side of the ToolBar. so i added a BarButton item and displayed icon image there.but the is a problem with icon color.it displaying as black which is not looking good and also cant able to arrange Barbutton items on right side of the Toolbar.can any one tell me a good way to do it.please help me to arrange barbuttonitems on right side and provide a way to give colors to BarButtonItem.


Use below below change the color of UIToolBar.

//Give your choice of color.

  myToolbar.tintColor = [UIColor darkGrayColor];

To align the right button you need to use a bar button of type UIBarButtonSystemItemFlexibleSpace Read SO post.

Aligning UIToolBar items

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜