setScrollsToTop broken?

1 Feb
2010

For certain Tasks I diplay an LoadingView that pops over my current view. (P31LoadingView to be exact)

The problem was, after the window disappeared, the scrollToTop-Feature didn’t work anymore.

After searching for an hour, this solved the problem. Put it in your code right after the hide-call of the loadingview.

  // reset scroll to top
  // the loading window (import all) breaks this functionality, so we reenable it here.
  [self.tableView setScrollsToTop:YES];
  [[self.tableView window] makeKeyAndVisible];

The key was to make the current window the keyWindow again.

Related posts:

  1. Tweetie like swipe menu for iPhone apps
  2. implementation of -viewDidUnload caused
  3. Fix Mobile WebKit target behavior on OS 3.0

Comment Form

top

Switch to our mobile site