2010-09-24 70 views
0

是否有人會向我解釋我做錯了什麼。前 '*' 標記'*'標記之前的預期說明符限定符列表目標C

的財產通話

預計符限定符列表 :我給它:

#import <Foundation/Foundation.h> 


@interface Product : NSObject { 

    NSString *imageAddress; 
    NSString *name; 
    NSString *title; 

} 

@property (nonatomic, retain) *imageAddress; 
@property (nonatomic, retain) *name; 
@property (nonatomic, retain) *product; 

@end 

及其給我。

感謝

回答

5

這是你需要爲你的屬性類型,告訴你的GCC的隱蔽方式。

@property (nonatomic, retain) NSString *imageAddress; 
@property (nonatomic, retain) NSString *name; 
@property (nonatomic, retain) NSString *product; 
+0

哦,我的。我一直盯着它幾個小時,甚至沒有意識到。非常感謝。 – Lilz 2010-09-24 14:57:49

+3

叮噹聲明的目標是提供更直觀的錯誤消息。您可以嘗試切換(即使在gcc不透明時也是如此)。 – 2010-09-24 14:58:12

相關問題