ios - Custom font being clipped in UITabBarItem title -


when using custom fonts in uitabbaritem i'm seeing of characters being clipped @ bottom. saw occuring on uibutton's found fix subclass uibutton , override following method:

custom font on uibutton title clipped on top of word

-(void)layoutsubviews {     [super layoutsubviews];      cgrect frame = self.titlelabel.frame;     frame.size.height = self.bounds.size.height;     frame.origin.y = self.titleedgeinsets.top;     self.titlelabel.frame = frame; } 

unfortunately layoutsubviews isn't available override on uitabbaritem. has experienced problem , found fix it?

you can customize title (including color) attributes dictionary (settitletextattributes:forstate:, inherited uibaritem), , can adjust title’s position settitlepositionadjustment(_:forbarmetrics:) property.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -