vivek bhoraniya
vivek bhoraniya

Reputation: 1535

ToolBar title in center

Here is a screenshot of my toolbar. I want to set the text in center. It is displaying not in center. enter image description here

Upvotes: 0

Views: 235

Answers (1)

Firegab
Firegab

Reputation: 323

for navigationbar you can use

[[UINavigationBar appearance] setTitleVerticalPositionAdjustment:-20 forBarMetrics:UIBarMetricsDefault];

in the viewDidLoad of your controller.

For the toolbar you can create a customview with button and place it wherever you want with a CGRect.

Upvotes: 1

Related Questions