以前,当我使用苹果UIRefreshControl时,我可以在刷新控件的底部显示一个标签,如下所示:
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
    [refreshControl addTarget:self action:@selector(addReceipt:)
             forControlEvents:UIControlEventValueChanged];
    self.refreshControl = refreshControl;
    NSString *s = @"Swipe Down to Add Receipt";
    NSMutableAttributedString *a = [[NSMutableAttributedString alloc] initWithString:s];
    [a addAttribute:NSForegroundColorAttributeName value:[UIColor darkGrayColor] range:NSRangeFromString(s)];
    refreshControl.attributedTitle = a;现在我切换到ODRefreshControl作为自定义活动指示器,但是我找不到解决方案!我的ODRefreshControl代码(只是为了让它正常工作):
ODRefreshControl *refreshControl = [[ODRefreshControl alloc] initInScrollView:self.tableView];
    [refreshControl addTarget:self action:@selector(dropViewDidBeginRefreshing:) forControlEvents:UIControlEventValueChanged];发布于 2013-04-25 07:11:49
用这个控件看起来不可能开箱即用地支持这种类型的东西。看一下代码,它似乎不支持attributedTitle或任何类似的东西。另外,我假设你使用的是这个控件:
https://github.com/Sephiroth87/ODRefreshControl
如果是这样的话,你可能有几个选择:
initWithScrollView方法中,但这可能并不完全准确。ODRefreshControl?https://stackoverflow.com/questions/16203613
复制相似问题