Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 a 添加drop shadow到 anUIImageView以便阴影出现在UIImageView.
drop shadow
UIImageView
imageView.layer.shadowOffset只做其中之一。
imageView.layer.shadowOffset
有任何想法吗?
谢谢
通过使用在imageView.layer.shadowOffset = CGSizeMake(0,0)顶部和底部添加阴影来解决它。
imageView.layer.shadowOffset = CGSizeMake(0,0)