mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
deprecate ASGraphicsCreateImageWithTraitCollectionAndOptions (#1836)
This commit is contained in:
@@ -49,13 +49,15 @@
|
||||
|
||||
UIImage *backgroundImage = [UIImage as_resizableRoundedImageWithCornerRadius:5
|
||||
cornerColor:[UIColor whiteColor]
|
||||
fillColor:[UIColor lightGrayColor]];
|
||||
fillColor:[UIColor lightGrayColor]
|
||||
traitCollection:self.primitiveTraitCollection];
|
||||
|
||||
UIImage *backgroundHiglightedImage = [UIImage as_resizableRoundedImageWithCornerRadius:5
|
||||
cornerColor:[UIColor whiteColor]
|
||||
fillColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.4]
|
||||
borderColor:[UIColor lightGrayColor]
|
||||
borderWidth:2.0];
|
||||
borderWidth:2.0
|
||||
traitCollection:self.primitiveTraitCollection];
|
||||
|
||||
[_updateRegionButton setBackgroundImage:backgroundImage forState:UIControlStateNormal];
|
||||
[_updateRegionButton setBackgroundImage:backgroundHiglightedImage forState:UIControlStateHighlighted];
|
||||
|
||||
Reference in New Issue
Block a user