tags:

views:

49

answers:

1

I am a new comer in iPhone,i do'nt know How can I add a section header in UITableView? Thank You

+2  A: 

if you just want section header title, you can use UITableViewDataSource method:

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

Or you can set you custom view as header using UITableViewDelegate method:

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

The controller implementing these, needs to be the delegate/datasource of your table view.

lukya
Thank you lukya
talktobijju
plz accept my questions plz coz whenever i ask any question regarding iPhone this msz appear on the screen "Sorry, we are no longer accepting questions from this account. "
talktobijju
what??? hey if theres a problem with your account you should probably try contacting the admins.. commenting something like this everywhere wont help, in fact you might be considered a spammer...
lukya