Hi
I am using the three20 library for an iPhone project. As part of it I am using a pull to refresh (like fb and twitter) on a tableview. It works great, however it would be better if it was at the bottom of the tableview.
I cant see any obvious configuration settings to do this (basically no API docs), so I have dug around and it looks like I have to roll out my own implementation of TTTableViewDragRefreshDelegate
I have found the code which adds the actual drag button (removed irrelevant bits):
- (id)initWithController:(TTTableViewController*)controller {
if (self = [super initWithController:controller]) {
// Add our refresh header
_headerView = [[TTTableHeaderDragRefreshView alloc]
initWithFrame:CGRectMake(0,
-_controller.tableView.bounds.size.height,
_controller.tableView.width,
_controller.tableView.bounds.size.height)];
_headerView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
_headerView.backgroundColor = TTSTYLEVAR(tableRefreshHeaderBackgroundColor);
[_controller.tableView addSubview:_headerView];
}
But I am quite inexperienced with moving view stuff within code so I'm not really sure where to start. Any ideas?