Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. switch between datasource at runtime
  2. self.selectedDataSourceAndDelegate = [dataSourcesAndDelegates objectAtIndex:item.tag];
  3. [self.tableView setDelegate:selectedDataSourceAndDelegate];
  4. [self.tableView setDataSource:selectedDataSourceAndDelegate];