Search Results

Search found 1 results on 1 pages for 'radex'.

Page 1/1 | 1 

  • Removing all CALayer's sublayers

    - by radex
    Hi. I have trouble with deleting all layer's sublayers. I do this manually, but it's unwanted code clutter. I found many topics about this in google, but no answer. I tried to do something like this: for(CALayer *layer in rootLayer.sublayers) { [layer removeFromSublayer]; } but it didn't work. Also, i tried to clone rootLayer.sublayers into separate NSArray, but result was the same. Any ideas? regards, radex PS. sorry for my English. Edit: I thought it works now, but I was wrong. It works good with CALayers, but it doesn't work with CATextLayers. Any ideas?

    Read the article

1