开发者

Three20 “pull down to update”: How to change the text and datetime format?

I'm using a TTTableViewController with a TTURLRequestModel and implemented the "Drag to refresh" feature with these lines in my ViewController:

- (id<UITableViewDelegate>)createDelegate {
    return [[[TTTableViewDragRefreshDelegate alloc] initWithController:self] auto开发者_开发技巧release];
}

What is the right way to change the displayed text? Is it possible to change the arrow-icon too?

Thanks!


I would say, the cleanest way to do it, is to extend both TTTableHeaderDragRefreshView and TTTableViewDragRefreshDelegate to your own classes and override the- (void)setStatus:(TTTableHeaderDragRefreshStatus)status private function.

You can "hack" this change by changing the value of three20 localized strings and the update arrow in the Three20.Bundle file.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜