iphone - Three20 "pull down to update"没有显示上次更新时间

标签 iphone objective-c three20

当我在我的 TTTableViewController 中实现这个方法时:

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

我得到了“下拉更新...”功能,但是,它没有显示上次更新的日期和时间(就像我在 facebook 和 twitter 应用程序上看到的那样)。

我确定这是因为我没有实现某种协议(protocol)方法或类似的东西,但我不确定我需要实现的确切方法。该表可以很好地显示我的数据,所以我不确定我遗漏了什么。

有什么想法吗?

这是我看到的:

alt text

但这就是我想看到的:

alt text

最佳答案

您的模型是否继承自 TTURLRequestModel?如果是这样,作为你的最后一件事

- (void)requestDidFinishLoad:(TTURLRequest*)request

打电话

[super requestDidFinishLoad:request];

更新时间戳就是其中发生的事情。如果您的模型不是从 TTURLRequestModel 继承的,您仍然可以检查该模型的源代码以查看涉及的内容。

关于iphone - Three20 "pull down to update"没有显示上次更新时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4458632/

相关文章:

ios - 使用大量 bean 更快地初始化 Typhoon 工厂

iphone - TTThumbsviewcontroller 停止加载缩略图

iphone - 使用 UIButton 更改 UIScrollView?

iphone - 如何使 NSUserDefault 设置与应用程序内设置保持同步?

ios - 检测 Apple Watch 上的手指触摸 Action

iphone - 使用 Storyboard在两个 Controller 之间传递数据

iOS 12.4.1 发布导致 iPad 设备被苹果商店拒绝崩溃

具有 VFL 约束的 iOS 动态自动布局

iphone - 三20 : how to pass a class of objects between 2 views

iphone - TTNavigator popViewController?