UITableViewDataSource methods, default implementation

For a method like

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

if I want to implement it for certain tableViews in my view, and not others, is there a way to return the default implementation? TIA

Answers


Yes. Just return super's implementation.

if (tableView == myTableView) {
  // create and return your custom header
}
else {
  return [super tableView:tableView viewForHeaderInSection:section];
}

Need Your Help

contenteditable=“true”: creating a syntax highlighted input form

javascript jquery html dom plugins

I'm currently fiddling around with contenteditable="true" to create a syntax highlighted input box. I'm writing a jquery plugin that converts a <input> tag to a <div contenteditable="true"...

Socket.io broadcasts everything to everybody in node/express app

node.js socket.io

I wondered if someone could help figure out what I am doing wrong:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.