在Interface Builder中为渐变视图设置渐变背景颜色 [英] Setting up Gradient Background Colors in Interface Builder for a Gradient View

查看:114
本文介绍了在Interface Builder中为渐变视图设置渐变背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在属性检查器中启用了渐变视图,但是我无法固定颜色以显示更多的颜色过渡,并且还显示颜色从下到上而不是从左到右?在右窗格上需要进行哪些修改?

I have enabled gradient view in attribute inspector but I’m having trouble fixing the colors to show more of a transition with the colors and also show the colors going from bottom to top instead of colors going left to right? What are the modifications on the right pane that need to be made?

推荐答案

您希望Start PointX和End PointX为0.然后将Start PointY设置为0,将End PointY设置为1.这将给出从上到下的渐变顶部颜色位于顶部,底部颜色位于底部.

You want Start PointX and End PointX to be 0. Then set Start PointY to 0 and End PointY to 1. This will give a gradient from top to bottom starting with the Top Color at the top and the Bottom Color at the bottom.

这篇关于在Interface Builder中为渐变视图设置渐变背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆