Skip to content

Commit

Permalink
pod JPCategory-OC
Browse files Browse the repository at this point in the history
  • Loading branch information
SteyDong committed Jan 19, 2021
1 parent 50e1152 commit b4f2111
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 405 deletions.
7 changes: 5 additions & 2 deletions JPTagView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Pod::Spec.new do |s|

s.name = "JPTagView"
s.version = "1.5.1"
s.version = "1.6.0"
s.summary = "Customized tag pages."
s.homepage = "https://github.com/baiyidjp/JPTagViewDemo"
s.license = "MIT"
Expand All @@ -13,6 +13,9 @@ Pod::Spec.new do |s|
s.source_files = "JPTagView/*.{h,m}"
s.requires_arc = true
s.dependency "SDWebImage"
# s.dependency 'JPCategory-OC/UIView', '1.2.3'
# s.dependency 'JPCategory-OC/UIImage', '1.2.3'
s.dependency 'JPCategory-OC/UIView', :git => "https://github.com/baiyidjp/JPCategory-OC.git", :tag => '1.2.3'
s.dependency 'JPCategory-OC/UIImage', :git => "https://github.com/baiyidjp/JPCategory-OC.git", :tag => '1.2.3'
# pod trunk push --allow-warnings
# 将修改文件copy到JPTagView
end
8 changes: 4 additions & 4 deletions JPTagView/JPTagCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ - (void)setTagModel:(JPTagModel *)tagModel {

} else if (tagModel.tagBackSelectedColor) {
//只有颜色
UIImage *selectedImage = [UIImage imageWithColor:tagModel.tagBackSelectedColor];
UIImage *selectedImage = [UIImage jp_imageWithColor:tagModel.tagBackSelectedColor];
[self p_HandleTagBackImage:selectedImage tagModel:tagModel];
}

Expand All @@ -108,7 +108,7 @@ - (void)setTagModel:(JPTagModel *)tagModel {

} else if (tagModel.tagBackNormalColor) {
//只有颜色
UIImage *normalImage = [UIImage imageWithColor:tagModel.tagBackNormalColor];
UIImage *normalImage = [UIImage jp_imageWithColor:tagModel.tagBackNormalColor];
[self p_HandleTagBackImage:normalImage tagModel:tagModel];
}

Expand Down Expand Up @@ -179,7 +179,7 @@ - (void)p_HandleTagBackImage:(UIImage *)tagBackImage tagModel:(JPTagModel *)tagM
//存在图片 根据条件展示
if (tagModel.isShowTagCornerRadius && tagModel.isShowTagBorder) {
//圆角+边框
[tagBackImage jp_asynCornerBorderImageWithSize:self.tagBackImageButton.bounds.size cornerRadius:tagCornerRadius borderWidth:tagBorderWidth borderColor:tagBorderColor completion:^(UIImage * _Nonnull borderImage) {
[tagBackImage jp_asynRoundImageWithSize:self.tagBackImageButton.bounds.size cornerRadius:tagCornerRadius borderWidth:tagBorderWidth borderColor:tagBorderColor completion:^(UIImage * _Nonnull borderImage) {
[self.tagBackImageButton setBackgroundImage:borderImage forState:UIControlStateNormal];
}];
} else if (tagModel.isShowTagCornerRadius) {
Expand All @@ -189,7 +189,7 @@ - (void)p_HandleTagBackImage:(UIImage *)tagBackImage tagModel:(JPTagModel *)tagM
}];
} else if (tagModel.isShowTagCornerRadius) {
//边框
[tagBackImage jp_asynCornerBorderImageWithSize:self.tagBackImageButton.bounds.size cornerRadius:0 borderWidth:tagBorderWidth borderColor:tagBorderColor completion:^(UIImage * _Nonnull borderImage) {
[tagBackImage jp_asynRoundImageWithSize:self.tagBackImageButton.bounds.size cornerRadius:0 borderWidth:tagBorderWidth borderColor:tagBorderColor completion:^(UIImage * _Nonnull borderImage) {
[self.tagBackImageButton setBackgroundImage:borderImage forState:UIControlStateNormal];
}];
} else {
Expand Down
78 changes: 0 additions & 78 deletions JPTagView/UIImage+JPCategory.h

This file was deleted.

161 changes: 0 additions & 161 deletions JPTagView/UIImage+JPCategory.m

This file was deleted.

28 changes: 0 additions & 28 deletions JPTagView/UIView+JPCategory.h

This file was deleted.

Loading

0 comments on commit b4f2111

Please sign in to comment.