0
titleForHeaderInSection 안에있는 글꼴 색을 변경하는 방법 ??캔트 변경 아이폰의 titleForHeaderInSection 안에있는 글꼴 색
- (NSString *)tableView:(UITableView *)tblView titleForHeaderInSection:(NSInteger)section {
//- (UIView *)tableView:(UITableView *)tblView viewForHeaderInSection:(NSInteger)section {
//tabelView.backgroundColor = [UIColor blueColor];
NSString *sectionName = nil;
switch(section)
{
case 0:
NSLog(@"ok");
UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0,0,100,30)];
myLabel.font = [UIFont fontWithName:@"Zapfino" size: 14.0];
myLabel.shadowColor = [UIColor grayColor];
myLabel.shadowOffset = CGSizeMake(1,1);
myLabel.textColor = [UIColor redColor];
myLabel.backgroundColor = [UIColor clearColor];
myLabel.text = @"DESCRIPTION";// not working i can only see value no color no font
}
}