2010-05-12 51 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

回答