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

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -