gpt4 book ai didi

iOS - 刷新控制 - "Attempting to change the refresh control while it is not idle is strongly discouraged and probably won' 无法正常工作。”

转载 作者:可可西里 更新时间:2023-11-01 03:38:42 31 4
gpt4 key购买 nike

我在任何地方都找不到很多关于此警告的引用资料。我有两个提供下拉刷新控制的 View Controller 。一个还好。另一个产生上面的警告。我将代码从一个复制到另一个。

代码如下(PFUser指Parse.com):

[super viewDidAppear:animated];
if ([PFUser currentUser]) {
NSLog(@"who's the user: %@", [PFUser currentUser]);


UIRefreshControl *refreshTable = [[UIRefreshControl alloc] init];
refreshTable.attributedTitle = [[NSAttributedString alloc] initWithString:@"One sec... refreshing"];
[refreshTable addTarget:self action:@selector(refresh:) forControlEvents:UIControlEventValueChanged];
self.refreshControl = refreshTable;

} else {

有没有人遇到过这个?是否有解决方法/修复方法?

最佳答案

viewDidLoad 方法中执行。

关于iOS - 刷新控制 - "Attempting to change the refresh control while it is not idle is strongly discouraged and probably won' 无法正常工作。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21296028/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com