ios - 选择时自定义标签栏图标不是 "filled in"

标签 ios xcode

我创建了一个自定义标签栏图标,并确保将背景设置为透明。选择时图标的轮廓会突出显示,但不会像系统图标那样填充。

来自人机界面指南手册:

Provide two versions of custom tab bar icons. Provide icons for both the selected and unselected states. The selected icon is often a filled-in version of the unselected icon, but some designs call for variations to this approach.

我的问题是我按指示创建了两个版本的图标后,你们如何设置它?

最佳答案

使用 Storyboard ,您需要选择 tabViewController 并根据需要定义选项卡项属性

enter image description here enter image description here

希望对你有帮助

关于ios - 选择时自定义标签栏图标不是 "filled in",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45282030/

相关文章:

swift - 以编程方式在导航栏中嵌入分段控件

xcode - 预期标识符或 '(' - xCode

objective-c - UIScrollView 带按钮分页

ios - 林飞IOS : SSL handshake failed : X509 - Certificate verification failed

ios - 如何避免 XCode 每次运行时都重置我的 iPhone 上的位置

ios - “The application does not have a valid signature” 在 XCode 5 中显示每一秒

iphone - XCode 4.4如何将文件永久添加到项目中

ios - 如何检测用户使用的是 iPhone、iPhone 5 还是 iPad

ios - 动态改变图形资源颜色的策略

android - AWS cognito 与 AppAuth 集成