hi all i have so confused to make an image in the table's header section , and i have make put the image in the cell of table but i cannot understand how to make put image in the section part of table . here is my code of that method ..
(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
if (section == 0) {
// return @"Alpahbets"; With String
UILabel *alphabet = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, 200, 100)];
alphabet.text = @"Alphabet";
return alphabet.text;
} if (section == 1) {
// return @"Roman"; with String UILabel *roman = [[UILabel alloc]initWithFrame:CGRectMake(50, 100, 200, 100)]; roman.text = @"Roman"; return roman.text;
} else {
// return @"Digits"; With String
UILabel *digit = [[UILabel alloc]initWithFrame:CGRectMake(50, 100, 200, 100)];
digit.text = @"Digit";
return digit.text;
}
}