gpt4 book ai didi

iphone - 在 iOS 中使用 AlertView

转载 作者:行者123 更新时间:2023-11-28 18:13:24 25 4
gpt4 key购买 nike

我正在使用 AlertView 和 xcode,xcode 显示消息:未声明的标识符 alertLabel ...

代码如下:

-(void)alertView:(UIAlertView *) alerta didDismissWithButtonIndex:(NSInteger)buttonIndex

switch (buttonIndex) {
case 0:
alertLabel.text = @"Ok!";
break;

default:
break;
}

有人能帮帮我吗?

最佳答案

该错误意味着不存在 alertlabel 之类的东西,因此请确保您正确声明了它。

关于iphone - 在 iOS 中使用 AlertView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11471053/

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