Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh093 committed Sep 15, 2020
1 parent 1d7d31e commit e52a133
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion JHViewCorner.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'JHViewCorner'
s.summary = "Set view's corner with one code!"
s.version = '1.2.3'
s.version = '1.2.4'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.authors = { 'Haocold' => 'xjh093@126.com' }
s.homepage = 'https://github.com/xjh093/JHViewCorner'
Expand Down
10 changes: 5 additions & 5 deletions JHViewCorner/UIView+JHViewCorner.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ - (void)jh_setCornerRadius:(CGFloat)radius color:(UIColor *)color rectCorner:(UI
}

- (UIImageView *)jh_maskView{
return [self getMaskView];
return [self getImageMaskView];
}

- (UIImageView *)jh_highlightedMaskView{
Expand Down Expand Up @@ -265,7 +265,7 @@ - (void)addMaskImage:(UIImage *)image offset:(CGFloat)offset{
maskView.frame = CGRectInset(self.bounds, offset, offset);
maskView.image = image;
[self addSubview:maskView];
[self setMaskView:maskView];
[self setImageMaskView:maskView];
}

- (void)addHighlightedMaskImage:(UIImage *)highlightedImage offset:(CGFloat)offset{
Expand All @@ -277,11 +277,11 @@ - (void)addHighlightedMaskImage:(UIImage *)highlightedImage offset:(CGFloat)offs
[self setHighlightedMaskView:highlightedImageView];
}

- (void)setMaskView:(UIImageView *)imageView{
objc_setAssociatedObject(self, @selector(getMaskView), imageView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
- (void)setImageMaskView:(UIImageView *)imageView{
objc_setAssociatedObject(self, @selector(getImageMaskView), imageView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

- (UIImageView *)getMaskView{
- (UIImageView *)getImageMaskView{
return objc_getAssociatedObject(self, _cmd);
}

Expand Down
Binary file added JHViewCornerDemo/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions JHViewCornerDemo/JHViewCornerDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.haocold.JHViewCornerDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "fbc98071-a17e-4f81-9d21-34d058185edd";
PROVISIONING_PROFILE_SPECIFIER = haocold_dev;
PROVISIONING_PROFILE_SPECIFIER = haocold.develop;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -413,7 +413,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.haocold.JHViewCornerDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "fbc98071-a17e-4f81-9d21-34d058185edd";
PROVISIONING_PROFILE_SPECIFIER = haocold_dev;
PROVISIONING_PROFILE_SPECIFIER = haocold.develop;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
Binary file not shown.

0 comments on commit e52a133

Please sign in to comment.