开发者

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

开发者 https://www.devze.com 2023-04-05 12:46 出处:网络
I\'m using a TTTableViewController with a TTURLRequestModel and implemented the \"Drag to refresh\" feature with these lines in my ViewController:

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

精彩评论

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