2010-05-12 78 views
0

我们可以更改我显示我们可以选择颜色以灰色显示在表格视图标题字符串的颜色吧。就是有我不表视图标题 的任何财产询问表视图页眉或页脚我指的是标题如何更改表视图标题的颜色

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section 
{ 
// Keep space in the following line ........ DONT REMOVE 
return [NSString stringWithFormat:@"Select your service:"]; 
} 
+0

我得到这个 - (UIView的*)的tableView:(UITableView的*)的tableView viewForHeaderInSection:(NSInteger的)部分 { \t tempHeader = [[的NSString的alloc] initWithString:@“亲爱的“]; \t tempHeader = [tempHeader stringByAppendingString:appDelegate.KFirstname]; \t tempHeader = [tempHeader stringByAppendingString:@“Select your service:”]; \t \t 的UILabel * V = [[ALLOC的UILabel] INIT]; \t v.textColor = [UIColor redColor]; \t v.text = tempHeader; // [v.textColor.CGColor:[UIColor blackColor]]; return v; } 但我想它看起来相同,因为它看起来只是红色应该显示为字符串 – madhavi 2010-05-12 13:12:48

回答