Joined February 2013
·
8e97d3418e72e86212ebcdd6fd3bc9d5

spnkr

Supreme Gravity
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
8,971 Total ProTip Views