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
2010-08-10 06:47:55
Thank you lukya
talktobijju
2010-08-10 09:34:23
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
2010-08-16 13:59:53
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
2010-08-16 14:28:33