开发者

Custom color pattern to use in Interface Builder

开发者 https://www.devze.com 2023-02-16 17:38 出处:网络
I guys, you surely know about the color grouped tableview background color(see the screenshot below) or the vi开发者_JAVA百科ew flipside background color. You can find them in Interface Builder, and

I guys,

you surely know about the color grouped tableview background color(see the screenshot below) or the vi开发者_JAVA百科ew flipside background color. You can find them in Interface Builder, and they are a sort of "pattern colors".

Is there a way to create a custom "pattern-color", and use it with IB?

Custom color pattern to use in Interface Builder


I think what you want is + (UIColor *)colorWithPatternImage:(UIImage *)image, which come from this apple doc. I remember some document mentioning about IB plug-in, but I has no experiment about custom IB plug-in.

As for me, I will use category syntax to extent custom color pattern for project.

0

精彩评论

暂无评论...
验证码 换一张
取 消