Joined February 2013
·

spnkr

Supreme Gravity
·
New York, NY
·
·
·

Posted to Gradient fills with RubyMotion over 1 year ago

You can have multiple gradient sublayers. e.g. calling gview.layer.addSublayer(gradient) twice will yield

gview.layer.sublayers
=> [#<CAGradientLayer:0xc8f8690>, #<CAGradientLayer:0x158625d0>]

To change an existing gradient you need to modify one of the sublayers--adding another CAGradientLayer won't overwrite the existing gradient layers.

Achievements
192 Karma
18,227 Total ProTip Views