表视图部分页眉/页脚文本中使用的颜色是什么?

发布于 2024-09-30 04:37:36 字数 149 浏览 0 评论 0原文

这种柔和的蓝灰色到处都是,我找不到一种看起来很接近的方便颜色。显然我错过了一些明显的东西......

我试图“伪造”UIView 的库存外观,这是我的 UITableView 部分页脚。还有其他人有这样的运气吗?

我的 UILabel 还需要白色阴影。

This muted blue grey color is all over the place, and I can't find a convenience color that looks even remotely close. Clearly I'm missing something obvious...

I'm trying to "fake" a stock look for a UIView that is my section footer for a UITableView. Has anyone else had any luck?

My UILabel will also need a white drop shadow.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

后知后觉 2024-10-07 04:37:36

我不确定 Apple 如何获取 RGB 值并将它们转换为浮点数(看起来这不是一个简单的 VALUE / 255),但是我在 Photoshop 中使用滴管时得到的值给出了相同的 RGB 值

[UIColor colorWithRed:0.3025 green:0.3375 blue:0.425 alpha:1]

:另一件让我大吃一惊的事情是,每个人都有不同的 RGB 值!这是怎么发生的?

I'm not sure how Apple takes the RGB values and converts them to float (it would seem it's not a simple VALUE / 255), but the values that I got which when using the eyedropper in Photoshop gave the same RGB values were:

[UIColor colorWithRed:0.3025 green:0.3375 blue:0.425 alpha:1]

The other piece that has blown my mind, is that everyone got different RGB values! How does that happen?

不醒的梦 2024-10-07 04:37:36

我相信使用的颜色是 [UIColor darkGrayColor]。

使用创建自定义标题。

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

此外,您可以在表视图委托中

I believe the color used is [UIColor darkGrayColor].

Also, you can create your custom headers using

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

in the table view delegate.

峩卟喜欢 2024-10-07 04:37:36

由于您已经拍摄了快照,因此可以使用颜色选择器来获取颜色。

  • 页眉:(0.37、0.40、0.52)
  • 页脚:(0.28、0.36、0.64)

Since you have already taken a snapshot, you could use a color picker to get the colors.

  • header: (0.37, 0.40, 0.52)
  • footer: (0.28, 0.36, 0.64)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文