在显示之前更改 UIRefreshControl 标题 - Objective-c iOS

Change UIRefreshControl title before showing it - Objective-c iOS

是否可以在 UIRefreshControl 标题出现在屏幕上之前更改它?

实际上,我使用这段代码在我的更新方法中更改标题:

NSString *refreshControlTitle = @"Pull to refresh...No new item to show";
NSDictionary *attrsDictionary = [NSDictionary dictionaryWithObject:[UIColor colorWithRed:0.35 green:0.78 blue:0.98
                                                                                                   alpha:1.0]
                                                                            forKey:NSForegroundColorAttributeName];
NSAttributedString *attributedTitle = [[NSAttributedString alloc] initWithString:refreshControlTitle attributes:attrsDictionary];
refreshControl.attributedTitle = attributedTitle;

(部分文字根据情况更改),但文字只是在刷新后才更改

我怎样才能在用户开始看到 refreshControl 之前实现文本?

提前致谢!

- (void) scrollViewWillBeginDragging:(UIScrollView *)scrollView {
}

尝试把标题放在这个方法中