Closed bluesky0109 closed 6 years ago
没有问题
self.tabBar.layout.normalTextFont = [UIFont systemFontOfSize:17];
self.tabBar.layout.selectedTextFont = [UIFont boldSystemFontOfSize:19];
如上 需要自定义 选中字体时,源码 在选中时 设置的还是 normalTextFont,外面自定义设置的并未生效。
恩 因为字体是缩放selectedTextFont大小,所以这样设置不行
toCell.titleLabel.font = _normalTextFont >>> toCell.titleLabel.font = _selectedTextFont ; 如上修正代码