gpt4 book ai didi

objective-c - wait_fences : failed to receive reply: 10004003 error still appearing

转载 作者:行者123 更新时间:2023-12-01 16:59:49 24 4
gpt4 key购买 nike

我读过它与发布 subview 有关,例如 UIAlertView或诸如文本响应器之类的东西。这是我的 UIAlertView 的代码正在被调用...
如果有人可以提供帮助,将不胜感激。

- (void)viewDidAppear:(BOOL)animated {  
reachability = [Reachability reachabilityForInternetConnection];
NetworkStatus internetStatus = [reachability currentReachabilityStatus];

if (internetStatus == NotReachable) {
UIAlertView *errorView;

errorView = [[UIAlertView alloc] initWithTitle: NSLocalizedString(@"Network error", @"Network error") message: NSLocalizedString(@"No internet connection found, this application requires an internet connection to gather the data required.", @"Network error") delegate: self cancelButtonTitle: NSLocalizedString(@"Close", @"Network error") otherButtonTitles: nil];

[errorView show];
[errorView autorelease];
}
}

最佳答案

在顶部添加 [super viewDidAppear:animated]。

似乎警报委托(delegate)也可以设置为 nil,因为用户只能选择关闭警报。

关于objective-c - wait_fences : failed to receive reply: 10004003 error still appearing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8190989/

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