Making text color of UILabel same as UITableView header's text color?

I got a workaround. From one of stack-overflow question, I got a RGB value (RGB: 76, 86, 108 with font style BOLD and size is 16) for the text color used by UITableView's Header section. I am currently using the same for setting the text color of UILabel.

I would appreciate if one can tell me the way to know the textColor of UITableView programmatically so that the hard code RGB values will not be used. Thank you for your support.

I think this is the only way to achieve this. I don't know why UITableView does not provide textColor property? – NavSoft Nov 18 '11 at 10:11.

Try to traverse UITableView subviews hierarchy looking for UILabels and then logging its attributes: -(void)traverseView:(UIView *)view{ for(UIView *subview in view. Subviews){ if (subview isKindOfClass:UILabel class){ NSLog(@"font:%@",(UILabel *)subview font); NSLog(@"color:%@",(UILabel *)subview textColor); NSLog(@"and so on:%@",(UILabel *)subview anotherProperty); }else{ self traverseView:subview; } } } -(void)lookForIt:(UITableView *)tableView{ self traverseView:tableView; }.

But this will give textColor of UILabel only. I want to change it to the textColor of UITableView's Header section. Is there any textColor property available with UITableView's Header section.

– Naved Nov 18 '11 at 3:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions