ios - Can i only display text in tab bar item and change the style and position -


i add tab bar in storyboard, , not want set image tab bar item, , following:

enter image description here

how can change font , position title of bar item in storybord?

first select tab bar item in storyboard, in attributes inspector set system item , title position custom, able change position of title setting values horizontal , vertical boxes.

enter image description here

finally, change font, in viewdidload(), include:

uitabbaritem.appearance().settitletextattributes([nsfontattributename: uifont(name: "avenir-blackoblique", size:20)!, nsforegroundcolorattributename: uicolor.blue], for: .normal) 

nsfontattributename allow change font style , nsforegroundcolorattributename allow change font color.


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -