objective-c - Objective-C : How to add a red color tab to a tab bar controller

标签 objective-c ios uitabbar

我想创建一个居中的红色标签按钮(就像在 Pinterest 中一样),如下面的屏幕截图所示

enter image description here

关于如何做到这一点有什么建议吗?

最佳答案

您可以在 UITabBar 顶部添加自定义按钮。

参见 http://idevrecipes.com/2010/12/16/raised-center-tab-bar-button/

关于objective-c - Objective-C : How to add a red color tab to a tab bar controller,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6994088/

相关文章:

iphone - 使用 RestKit 解析嵌套的动态 JSON

ios - 在 Popover 中显示 ImagePicker - ipad

ios - 如何检查 Apple Store 上可用的更新并在 Objective C 中提供弹出窗口

objective-c - 使 NSWindow(或其他东西)出现在菜单栏上方

ios - 裁剪音频文件

ios - 迁移运行后立即遍历 Realm 中的所有记录 - Swift/iOS

swift - 选项卡栏中所选图像的颜色在 iOS 7 中不会改变

iOS 11 UIBarButtonItem 图像未调整大小

ios - 更改默认值 "Not Selected"UITabBarItem 图像颜色

iphone - 如何清除在 Xcode 中创建的 plist 中的数据?