In an animation I added a lot of sublayers to a view, with:
[self.view.layer addSublayer:layer1]; [self.view.layer addSublayer:
This worked for me and fixed the crash:
[self.view.layer.sublayers makeObjectsPerformSelector:@selector(removeFromSuperlayer)]
I changed the view with my image UImageview, and the crash is gone.
UImageview