imgViewBubble.image = bubbleImage.resizableImage(withCapInsets:
UIEdgeInsetsMake(17, 21, 17, 21),resizingMode: .stretch).withRenderingMode(.alwaysTemplate)
答案 0 :(得分:1)
imgViewBubble.clipsToBounds = false
imgViewBubble.layer.shadowColor = UIColor.black.cgColor
imgViewBubble.layer.shadowOffset = CGSize(width: 0, height: 0)
imgViewBubble.layer.shadowOpacity = 0.5
imgViewBubble.layer.shadowRadius = 5