tags:

views:

31

answers:

1

I'm using a basic Three20 TTTableViewController subclass which employs its own datasource and model.

The problem is that I cannot seem to use the scrollsToTop property of the table. This is a standard property for the table, inherited from UIScrollView and very commonly used.

I have tried all of the following, in numerous different locations/methods within my class:

self.tableView.scrollsToTop = YES;

[self.tableView setScrollsToTop:YES]


I have also tried overriding the method

- (BOOL)scrollViewShouldScrollToTop:(UIScrollView *)scrollView {
    return YES; 
}

All without success. Any help much appreciated!

A: 

try this:

self.tableview.scrollingEnabled=YES;
self.tableview.scrollsToTop=YES;

Also check that your delegate is returning YES in this method:

scrollViewWillScrollToTop:

Mike
Thanks for the reply. Unfortunately, none of the above has worked. Strangely, the normal behaviour is observed in some tables throughout the app but not others. No scroll views are embedded in the tables anywhere.
imnk