私は影を落としているアニメーションCALayerを持っています。それは私がやろうとしていたものですが、私はぼかしなしでしっかりした影を持つ方法を模索しています。ぼかし半径を変更しても問題は解決しません。 アイデアCALayerのソリッドシャドウ
多くのありがとうございます。
myLayer.shadowRadius = 3;
//shadowBlurRadius
myLayer.shadowColor = [[UIColor greenColor] CGColor];
//intended is to get a green solid shadow without blur
myLayer.shadowOpacity = 1.0の設定を試しましたか? [https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004500-CH1-SW84](https://developer。 apple.com/library/ios/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004500-CH1-SW84) – jhilgert00
なぜ「shadowRadius」が影響を与えていないと言いますか?ぼかし量?半径を下げるとどうなりますか? – Rob