fixed: 1.我的金币页面导航显示修复
2.金币详情页兑换按钮不显示 3.实时动态页面调整 4.金币兑换页面调整
This commit is contained in:
+3
-16
@@ -26,7 +26,7 @@
|
||||
|
||||
-(void)creatTab{
|
||||
|
||||
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,self.view.frame.size.height) style:UITableViewStyleGrouped];
|
||||
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,self.view.frame.size.height-TOP_HEIGHT) style:UITableViewStylePlain];
|
||||
self.tableView.delegate = self;
|
||||
self.tableView.dataSource = self;
|
||||
self.tableView.scrollEnabled = YES;
|
||||
@@ -37,7 +37,7 @@
|
||||
[self.view addSubview:self.tableView];
|
||||
|
||||
UIButton *duiHuanBtn=[UIButton buttonWithType:UIButtonTypeCustom];
|
||||
duiHuanBtn.frame = CGRectMake(0, self.view.frame.size.height -49, self.view.frame.size.width, 49);
|
||||
duiHuanBtn.frame = CGRectMake(0, 0, self.view.frame.size.width, 49);
|
||||
|
||||
[duiHuanBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
||||
NSMutableAttributedString *title = [[NSMutableAttributedString alloc] initWithString:@"立即兑换"];
|
||||
@@ -47,9 +47,7 @@
|
||||
[duiHuanBtn setAttributedTitle:title forState:UIControlStateNormal];
|
||||
[duiHuanBtn setBackgroundColor:RGB(67, 186, 255)];
|
||||
[duiHuanBtn addTarget:self action:@selector(duihuanBtnClick) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
[self.view addSubview:duiHuanBtn];
|
||||
|
||||
self.tableView.tableFooterView = duiHuanBtn;
|
||||
|
||||
|
||||
}
|
||||
@@ -87,17 +85,6 @@
|
||||
return 470;
|
||||
}
|
||||
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
|
||||
|
||||
return 0.1;
|
||||
}
|
||||
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
|
||||
|
||||
return 10;
|
||||
|
||||
}
|
||||
|
||||
#pragma mark -金币兑换
|
||||
-(void)duihuanBtnClick{
|
||||
|
||||
|
||||
+19
-5
@@ -15,6 +15,7 @@
|
||||
@property(nonatomic,strong)UITableView *tableView;
|
||||
@property(nonatomic,strong)NSMutableArray *dataArr;
|
||||
@property (nonatomic) NSIndexPath *selectIndexPath;
|
||||
@property(nonatomic,strong) UIView *sectionHeaderView;
|
||||
@property (nonatomic) BOOL isChage;
|
||||
@end
|
||||
|
||||
@@ -57,7 +58,7 @@
|
||||
|
||||
-(void)creatTab{
|
||||
|
||||
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,self.view.frame.size.height-TOP_HEIGHT) style:UITableViewStyleGrouped];
|
||||
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,self.view.frame.size.height-TOP_HEIGHT) style:UITableViewStylePlain];
|
||||
self.tableView.delegate = self;
|
||||
self.tableView.dataSource = self;
|
||||
self.tableView.scrollEnabled = YES;
|
||||
@@ -99,13 +100,26 @@
|
||||
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
|
||||
|
||||
return 0.1;
|
||||
return CGFLOAT_MIN;
|
||||
}
|
||||
|
||||
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
|
||||
return nil;
|
||||
}
|
||||
|
||||
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
|
||||
|
||||
return 0.1;
|
||||
|
||||
return 10;
|
||||
}
|
||||
|
||||
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
|
||||
return self.sectionHeaderView;
|
||||
}
|
||||
|
||||
-(UIView *)sectionHeaderView {
|
||||
if (!_sectionHeaderView) {
|
||||
_sectionHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 10)];
|
||||
}
|
||||
return _sectionHeaderView;
|
||||
}
|
||||
|
||||
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
|
||||
|
||||
Reference in New Issue
Block a user