我的标签栏只包含文本,没有图像.
问题是文本总是显示在标签的底部,有没有办法将文本定位在中间?
My tabbar consists only of text, no images.
The problem is that the text always show on the bottom of the tab, is there a way to position the text in the middle ?
谢谢
知道了!
[tab.tabBarItem setTitlePositionAdjustment:UIOffsetMake(0, -10)]
这篇关于ios标签栏在没有图像时将文本放在中间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
iOS 8 requestWhenInUseAuthorization 没有弹出iOS 8 requestWhenInUseAuthorization no Popup(iOS 8 requestWhenInUseAuthorization 没有弹出)
计算距离一个坐标的新坐标 x 米和 y 度Calculate new coordinate x meters and y degree away from one coordinate(计算距离一个坐标的新坐标 x 米和 y 度)
获取 UITableview 中自定义单元格的行索引Get row index of custom cell in UITableview(获取 UITableview 中自定义单元格的行索引)
在 iOS 模拟器中按下主页按钮时不会调用 applicaapplicationDidEnterBackground and applicationWillEnterForeground method are not called when pressed home button in iOS simulator(在 iOS 模拟器中按下
iOS5:在模态 UIViewController 中播放 Youtube 视频时 UiOS5: Exception on UIWebView in modal UIViewController playing Youtube video(iOS5:在模态 UIViewController 中播放 Youtube 视频时 UIWebView 出现
respondsToSelector 外观代理失败respondsToSelector fails for appearance proxy(respondsToSelector 外观代理失败)