gpt4 book ai didi

ios - 期望类型

转载 作者:行者123 更新时间:2023-11-29 10:59:18 25 4
gpt4 key购买 nike

我收到一条错误消息,提示“需要一个类型”,但我不知道那是什么意思。以下是错误所在的行:

#pragma mark - Flipside View Controller

- (void)flipsideViewControllerDidFinish:(XYZFlipsideViewController*)controller <=== This
is the line with the error
{
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
[self dismissViewControllerAnimated:YES completion:nil];
} else {
[self.flipsidePopoverController dismissPopoverAnimated:YES];
self.flipsidePopoverController = nil;
}
}

最佳答案

通常,当您的文件中有结构性拼写错误(弄乱引号或括号平衡等...)时,会显示此消息

我以前也遇到过这种情况,它是一个头文件,其中有一个拼写错误。你检查过 XYZFlipsideViewController.h 了吗?检查拼写错误以及循环依赖。

关于ios - 期望类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16719044/

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