I use a piece of code for the shadow of the view using the slider. The slider is set from -15 to 15. This code works amazingly when slider.value positive, but the application stops working if it is negative. crash log is weird Terminating in response to backboardd termination .
I received this magazine for the first time. What is it?
here is my code.
childViews.layer.shadowColor = [[UIColor blackColor] CGColor]; childViews.layer.shadowOffset = CGSizeMake(slide,slide); childViews.layer.shadowOpacity = 1.0; childViews.layer.shadowRadius=10; childViews.layer.masksToBounds = NO; childViews.layer.shouldRasterize = YES;
source share