开发者

Three20 "pull down to update" isn't showing last update time

开发者 https://www.devze.com 2023-01-31 02:05 出处:网络
When I implement this method in my TTTableViewController: - (id<UITableViewDelegate>)createDelegate {

When I implement this method in my TTTableViewController:

- (id<UITableViewDelegate>)createDelegate {
    return [[[TTTableViewDragRefreshDelegate alloc] initWithController:self] autorelease];
}

I get the "pull down to update..." feature, however, it's not开发者_C百科 displaying the date and time of the last update (like I see on the facebook and twitter apps).

I'm sure this is because I'm not implementing some protocol method or something like that, but I'm not sure exactly which method(s) I need to implement. The table is displaying my data just fine, so I'm not sure what I'm missing.

Any ideas?

This is what I'm seeing:

Three20 "pull down to update" isn't showing last update time

But this is what I want to see:

Three20 "pull down to update" isn't showing last update time


Is your model inheriting from TTURLRequestModel? If so, as the last thing in your

- (void)requestDidFinishLoad:(TTURLRequest*)request

call

[super requestDidFinishLoad:request];

Updating the timestamp is what happens in there. If your model is not inheriting from TTURLRequestModel you can still check the source code of that one to see what's involved.

0

精彩评论

暂无评论...
验证码 换一张
取 消