1
This commit is contained in:
@@ -9,12 +9,11 @@
|
||||
|
||||
@implementation KBShopHeadView
|
||||
|
||||
/*
|
||||
// Only override drawRect: if you perform custom drawing.
|
||||
// An empty implementation adversely affects performance during animation.
|
||||
- (void)drawRect:(CGRect)rect {
|
||||
// Drawing code
|
||||
- (instancetype)initWithFrame:(CGRect)frame{
|
||||
if (self = [super initWithFrame:frame]) {
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
*/
|
||||
|
||||
@end
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface KBShopVC : UIViewController
|
||||
@interface KBShopVC : BaseViewController
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -30,13 +30,21 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
||||
|
||||
@property (nonatomic, strong) JXCategoryTitleView *categoryView;
|
||||
@property (nonatomic, strong) NSArray <NSString *> *titles;
|
||||
@property (nonatomic, strong) UIImageView *bgImageView; // 全屏背景图
|
||||
|
||||
@end
|
||||
|
||||
@implementation KBShopVC
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
// [self setupUI];
|
||||
self.bgImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"my_bg_icon"]];
|
||||
self.bgImageView.contentMode = UIViewContentModeScaleAspectFill;
|
||||
[self.view addSubview:self.bgImageView];
|
||||
[self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.view);
|
||||
}];
|
||||
[self setupUI];
|
||||
|
||||
}
|
||||
|
||||
@@ -90,6 +98,7 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
||||
|
||||
_pagerView = [self preferredPagingView];
|
||||
self.pagerView.mainTableView.gestureDelegate = self;
|
||||
self.pagerView.mainTableView.backgroundColor = [UIColor clearColor];
|
||||
[self.view addSubview:self.pagerView];
|
||||
// self.pagerView.listContainerView.scrollView.scrollEnabled = false;
|
||||
|
||||
@@ -119,7 +128,7 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
||||
self.naviBGView.frame = CGRectMake(0, 0, KB_SCREEN_WIDTH, KB_NAV_TOTAL_HEIGHT);
|
||||
[self.view addSubview:self.naviBGView];
|
||||
UILabel *naviTitleLabel = [[UILabel alloc] init];
|
||||
naviTitleLabel.text = @"导航栏隐藏";
|
||||
naviTitleLabel.text = @"商城";
|
||||
naviTitleLabel.textAlignment = NSTextAlignmentCenter;
|
||||
naviTitleLabel.frame = CGRectMake(0, KB_STATUSBAR_HEIGHT, self.view.bounds.size.width, 44);
|
||||
[self.naviBGView addSubview:naviTitleLabel];
|
||||
|
||||
Reference in New Issue
Block a user