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

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -