2011-03-06 64 views
0

我錯過了什麼?爲什麼我會得到這個錯誤? 「預期)在CLLocationDegress之前。」預計)CLLocationDegress之前

+ (NSMutableArray *)findNextTwentyFiveRemote:(CLLocationDegrees *)latitude withLong: (CLLocationDegrees *)longitude withLastIncrementNum:(int *)lastPostIdAsString; 

回答

0

CLLocationDegrees不是指針類型。這幾乎是一個雙倍。換句話說,刪除星號。

CLLocationDegrees initialization

+0

雖然對於這個特定的函數來說,輸入參數類型爲'CLLocationDegrees *'可能會也可能不會是正確的,但它不會給出報告的錯誤,而是聲明一個函數採用'double *'的意思。 – Anomie 2011-03-06 06:18:22

+0

確定把那些*出來,仍然是相同的錯誤,而不是(CLLocation *)我有(CLLocation)。 – jdog 2011-03-06 06:19:30

+0

拿出了CLLocationDegrees altogther,看起來像它的工作。 – jdog 2011-03-06 06:28:10

0

你記得#import <CoreLocation/CoreLocation.h>在源文件?

0

由於很多原因,您可能會得到此錯誤。這可能是由於代碼中的某些內容,比如缺少分號。我們需要看到更多的代碼,超出了你已經顯示的內容,以確定它是什麼。

相關問題