我遇到了这个错误:
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/