I want to create gradient color and want to use it into our UIView.
Can anyone tell me how can I generate a view with gradient color background in runtime.
If is there any way to do that then please provide me the code also.
Home / DeveloperSection / Forums / How to use Gradient color in UIView in iOS?
Anonymous User
30-Dec-2015The code I am providing here is already running in my own application, so I hope my code is helpful for you:
our gradient color is created, now we assign it in our view layer, like this: