2
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#import "MySkinCell.h"
|
||||
#import <Masonry/Masonry.h>
|
||||
#import "UIColor+Extension.h"
|
||||
#import "UIImageView+KBWebImage.h"
|
||||
|
||||
// 左上角小圆点 + 对勾视图(无需切图,用 CAShapeLayer 绘制)
|
||||
@interface KBSelectDotView : UIView
|
||||
@@ -122,10 +123,11 @@
|
||||
[self updateSelected:selected];
|
||||
}
|
||||
|
||||
- (void)configWithTitle:(NSString *)title image:(UIImage *)image {
|
||||
- (void)configWithTitle:(NSString *)title imageURL:(NSString *)imageURL {
|
||||
self.titleLabel.text = title.length ? title : @"Dopamine";
|
||||
// 简化:展示本地占位色
|
||||
self.coverView.backgroundColor = [UIColor colorWithWhite:0.92 alpha:1.0];
|
||||
UIImage *placeholder = [UIImage imageNamed:@"my_skin_placeholder"];
|
||||
[self.coverView kb_setImageURL:imageURL placeholder:placeholder];
|
||||
}
|
||||
|
||||
- (void)setEditing:(BOOL)editing {
|
||||
|
||||
Reference in New Issue
Block a user