gpt4 book ai didi

ios - 错误 : Expect ")" before CLLocation

转载 作者:行者123 更新时间:2023-11-28 23:12:39 24 4
gpt4 key购买 nike

我遇到了这个错误:

Expect ")" before CLLocation

我的代码:

MyAppDelegate.h

@protocol AskerConnectionDelegate
-(void) postNewQuestionForUserID: (NSString*)uID Text: (NSString*)text location: (CLLocation*)loc;

@end

最佳答案

您应该导入必要的头文件。

#import <MapKit/MapKit.h>

或者在@protocol声明之前添加一个@class指令,

@class CLLocation;

添加 @class 指令只是让编译器知道特定类的存在,而无需导入头文件。

关于ios - 错误 : Expect ")" before CLLocation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7738264/

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