How to animate layer shadowOpacity?
问题 I have a view on which I've set the layerOpacity to 1. theView.layer.shadowOpacity = 1.0; This looks fine when the view is farther down the screen. When I move this view up to be flush with another view that has a shadow, they don't look good. Is there a way I can animate the shadowOpacity on my layer to be 0? I tried using an animation block but it seems as if this property is not animatable. EDIT: Request for code that doesn't work: [UIView animateWithDuration:1.0 animations:^{ splitView2