Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在应用程序底部有标签栏,每个标签栏项目都有标题。
我怎样才能向上或向下移动这个标题?
解决方案:
UITabBar *tabBar = self.tabBarController.tabBar; UITabBarItem *item0 = [tabBar.items objectAtIndex:0]; item0.titlePositionAdjustment = UIOffsetMake(10, 5);
你不能(除非它的 iOS5 或更高版本)。你必须定制。