I have trouble with deleting all of layer\'s sublayers. I currently do this manually, but that brings unnecessary clutter. I found many topics about this in google, but no a
For sure you can do: self.layer.sublayers=nil;
as suggested by Pascal Bourque. But it's better to call the setter for sublayers property: [self.layer setSublayers:nil];
To avoid any clean up issues if there might be.