提交
This commit is contained in:
@@ -35,12 +35,12 @@
|
||||
self.bgImageHidden = YES;
|
||||
self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, 12, 100, 24)];
|
||||
self.titleLabel.font = [UIFont systemFontOfSize:16];
|
||||
self.titleLabel.textColor = QXConfig.textColor;
|
||||
self.titleLabel.textColor = RGB16(0xffffff);
|
||||
self.titleLabel.text = QXText(@"扩列交友");
|
||||
[self.view addSubview:self.titleLabel];
|
||||
|
||||
self.sortBtn = [[UIButton alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-75-13, 0, 75, 48)];
|
||||
[self.sortBtn setImage:[[UIImage imageNamed:@"arrow_bottom"] imageByTintColor:QXConfig.textColor] forState:(UIControlStateNormal)];
|
||||
[self.sortBtn setImage:[[UIImage imageNamed:@"arrow_bottom"] imageByTintColor:RGB16(0xffffff)] forState:(UIControlStateNormal)];
|
||||
if ([QXGlobal shareGlobal].loginModel.sex.integerValue == 1) {
|
||||
[self.sortBtn setTitle:QXText(@"只看女生") forState:(UIControlStateNormal)];
|
||||
self.type = @"2";
|
||||
@@ -48,7 +48,7 @@
|
||||
[self.sortBtn setTitle:QXText(@"只看男生") forState:(UIControlStateNormal)];
|
||||
self.type = @"1";
|
||||
}
|
||||
[self.sortBtn setTitleColor:QXConfig.textColor forState:(UIControlStateNormal)];
|
||||
[self.sortBtn setTitleColor:RGB16(0xffffff) forState:(UIControlStateNormal)];
|
||||
self.sortBtn.titleLabel.font = [UIFont systemFontOfSize:12];
|
||||
[self.sortBtn qx_layoutButtonNOSizeToFitWithEdgeInsetsStyle:(QXButtonEdgeInsetsStyleRight) imageTitleSpace:3];
|
||||
[self.sortBtn addTarget:self action:@selector(sortAction) forControlEvents:(UIControlEventTouchUpInside)];
|
||||
@@ -81,11 +81,19 @@
|
||||
}
|
||||
if (isAppStore) {
|
||||
self.appStoreView.hidden = NO;
|
||||
[self.sortBtn setTitleColor:RGB16(0xFFEB9D) forState:(UIControlStateNormal)];
|
||||
[self.sortBtn setImage:[[UIImage imageNamed:@"arrow_bottom"] imageByTintColor:RGB16(0xFFEB9D)] forState:(UIControlStateNormal)];
|
||||
self.sortBtn.top = ScaleWidth(71);
|
||||
self.tableView.hidden = YES;
|
||||
self.appStoreView.users = list;
|
||||
self.titleLabel.hidden = YES;
|
||||
}else{
|
||||
[self.sortBtn setTitleColor:RGB16(0xffffff) forState:(UIControlStateNormal)];
|
||||
[self.sortBtn setImage:[[UIImage imageNamed:@"arrow_bottom"] imageByTintColor:RGB16(0xffffff)] forState:(UIControlStateNormal)];
|
||||
self.sortBtn.top = 0;
|
||||
self.tableView.hidden = NO;
|
||||
self.appStoreView.hidden = YES;
|
||||
self.titleLabel.hidden = NO;
|
||||
}
|
||||
[weakSelf.dataArray addObjectsFromArray:list];
|
||||
[weakSelf.tableView.mj_header endRefreshing];
|
||||
|
||||
Reference in New Issue
Block a user