1
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
NS_ASSUME_NONNULL_BEGIN
|
NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@interface MySkinVC : UIViewController
|
@interface MySkinVC : BaseViewController
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ static NSString * const kMySkinCellId = @"kMySkinCellId";
|
|||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
self.view.backgroundColor = [UIColor whiteColor];
|
self.view.backgroundColor = [UIColor whiteColor];
|
||||||
|
|
||||||
self.title = @"My Skin"; // 标题
|
// self.title = @"My Skin"; // 标题
|
||||||
|
|
||||||
// 右上角 Editor/Cancel
|
// 右上角 Editor/Cancel
|
||||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Editor" style:UIBarButtonItemStylePlain target:self action:@selector(onToggleEdit)];
|
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Editor" style:UIBarButtonItemStylePlain target:self action:@selector(onToggleEdit)];
|
||||||
@@ -43,9 +43,9 @@ static NSString * const kMySkinCellId = @"kMySkinCellId";
|
|||||||
[self.view addSubview:self.bottomView];
|
[self.view addSubview:self.bottomView];
|
||||||
|
|
||||||
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop);
|
make.top.equalTo(self.view).offset(KB_NAV_TOTAL_HEIGHT);
|
||||||
make.left.right.equalTo(self.view);
|
make.left.right.equalTo(self.view);
|
||||||
make.bottom.equalTo(self.view.mas_bottom); // 底部被 bottomView 覆盖即可
|
make.bottom.equalTo(self.view.mas_bottom);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[self.bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
|
|||||||
@@ -242,12 +242,12 @@ static const CGFloat JXheightForHeaderInSection = 50;
|
|||||||
#pragma mark - action
|
#pragma mark - action
|
||||||
- (void)searchBtnAction{
|
- (void)searchBtnAction{
|
||||||
KBSearchVC *vc = [[KBSearchVC alloc] init];
|
KBSearchVC *vc = [[KBSearchVC alloc] init];
|
||||||
// [self.navigationController pushViewController:vc animated:true];
|
[self.navigationController pushViewController:vc animated:true];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)skinBtnAction{
|
- (void)skinBtnAction{
|
||||||
MySkinVC *vc = [[MySkinVC alloc] init];
|
MySkinVC *vc = [[MySkinVC alloc] init];
|
||||||
// [self.navigationController pushViewController:vc animated:true];
|
[self.navigationController pushViewController:vc animated:true];
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - lazy
|
#pragma mark - lazy
|
||||||
|
|||||||
Reference in New Issue
Block a user