|
|
@@ -574,7 +574,7 @@ self.isrefreshing=false;
|
|
|
|
|
|
|
|
|
|
|
|
- NSString* value =[DefaultAppearance get_noneappearance_value:@"DefaultTableHeaderView" valuename:@"title_text_color"];
|
|
|
+ NSString* value =[DefaultAppearance get_noneappearance_value:@"DetailTableHeaderView" valuename:@"title_text_color"];
|
|
|
|
|
|
if(value==nil)
|
|
|
value=@"";
|
|
|
@@ -610,9 +610,18 @@ self.isrefreshing=false;
|
|
|
{
|
|
|
NSString* btntitle=@"Refresh" ;
|
|
|
|
|
|
+ NSString* value =[DefaultAppearance get_noneappearance_value:@"DetailTableHeaderView" valuename:@"refresh_button_color"];
|
|
|
+
|
|
|
+ if(value==nil)
|
|
|
+ value=@"";
|
|
|
+ unsigned long color = strtoul([value UTF8String],0,16);
|
|
|
|
|
|
+
|
|
|
|
|
|
UIButton * btn =[[UIButton alloc] initWithFrame:CGRectMake(tableView.bounds.size.width-100-15, 0, 100, 33)];
|
|
|
+
|
|
|
+
|
|
|
+ [btn setTitleColor:UIColorFromRGB(color) forState:UIControlStateNormal];
|
|
|
btn.contentHorizontalAlignment=UIControlContentHorizontalAlignmentRight;
|
|
|
btn.tag=section;
|
|
|
[btn addTarget:self action:@selector(RefreshSection:) forControlEvents:UIControlEventTouchUpInside];
|
|
|
@@ -627,7 +636,7 @@ self.isrefreshing=false;
|
|
|
}
|
|
|
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
|
|
|
int section_count =[[self.detail_data valueForKey:@"detail_section_count"] intValue];
|
|
|
NSDictionary* related_json = [self.detail_data objectForKey:@"related_model"];
|