Question: I am trying to add a Fixed transparent header in a `UITableView` similar to the one on the attached image (LHR-SYD / 372 Results). Is this a "built in" component in xcode/ios or how is it done ?

![an image of an ios app that has a fixed transparent header on top of a uitableview](https://i.stack.imgur.com/Ix9S8.png)

Answer: 
use these methods ,

```
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section; 

```

above method for setting the view.

```
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section; 

```

above method for setting the title .
see this one ,

```
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
    UILabel *lbl = [[[UILabel alloc] init] autorelease];
    lbl.textAlignment = UITextAlignmentLeft;
    lbl.text=@"LHR-SYD / 372 Results";
    return lbl;
}

```

by using above method you can add different objects to your headerview.

(OR)

```
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
    return @"LHR-SYD / 372 Results";
}

```

this one your Requirement i think so.

```
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 30;
}

```

you can set height of the header view using this code
That is actually the default header for a `UITableView`. All you have to do is implement the `titleForHeaderInSection` method and it will appear. Check out the documentation for that method, it helps a lot