gpt4 book ai didi

ios - UIAlertView没有可见的@interface声明选择器

转载 作者:行者123 更新时间:2023-12-01 18:21:17 25 4
gpt4 key购买 nike

它说

UIAlertView没有可见的@interface清除选择器
'initWithTtile:消息...

这就是我所拥有的

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[NSString stringWithFormat:@"Error %@, here is your error", [error description]] delegate: nil cancelbuttonTitle:@"Cancel" otherButtonTitles:nil, nil];

最佳答案

问题出在cancelbuttonTitle B 应该大写。像cancelButtonTitle

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:[NSString stringWithFormat:@"Error %@, here is your error", [error description]] delegate: nil cancelButtonTitle:@"Cancel" otherButtonTitles:nil, nil];

关于ios - UIAlertView没有可见的@interface声明选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17080274/

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