deprecate ASGraphicsCreateImageWithTraitCollectionAndOptions (#1836)

This commit is contained in:
vovasty
2020-05-22 20:15:09 -07:00
committed by GitHub
parent 0d7f705aaa
commit 74fd8f3d33
27 changed files with 253 additions and 41 deletions
+4 -2
View File
@@ -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];