KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've added a gradient layer: [theView.layer insertSublayer:gradient atIndex:0]; And later on in another method I want to remove this layer. I figured I should get the array of sublayers then get the sublayer at index 0 and call removeFromSuperlayer on it. Is this the correct way or if not can you do it? Cheers.
Tags (comma-separated)
Save Edits
Cancel