gpt4 book ai didi

ios - 错误 : Semantic Issue: Interface type cannot be statically allocated?

转载 作者:IT王子 更新时间:2023-10-29 08:02:52 30 4
gpt4 key购买 nike

“错误:语义问题:无法静态分配接口(interface)类型” 是什么意思?

这是错误的行:

UIViewController imageWithCaptionController = [[UIViewController alloc] initWithNibName:@"ImageWIthCaption" bundle:nibBundleOrNil];

谢谢帕特里克

最佳答案

您可能在 imageWithCaptionController 之前缺少“*”,您的行应该是

UIViewController *imageWithCaptionController = ...

关于ios - 错误 : Semantic Issue: Interface type cannot be statically allocated?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5912338/

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