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

Untitled

By: a guest on Apr 25th, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 20  |  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. how to get the notification when UITableview 's section scroll to top?
  2. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  3.     CGRect rect = [tableView rectForRowAtIndexPath:indexPath];
  4.     float ypos = rect.origin.y;
  5.     if(y==<your identifier for top>) {
  6.       NSLog(@"I am on top");
  7.     }
  8.     // rest of your code...
  9. }