There is only one UITableView in my view controller and there's my code:
@interface MyViewController ()<UITableViewDataSource,UITableViewDelegate>
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, [UIScreen mainScreen].bounds.size.height) style:UITableViewStylePlain];
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.scrollsToTop = YES;
[self.view addSubview:self.tableView];
It even does not run the :
- (BOOL) scrollViewShouldScrollToTop:(UIScrollView*) scrollView
I dont know why, how can I fix this? Thank you very much.