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:
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.
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
Post a Comment