0

i got 3 syntax errors:

"syntax error before "}" token" my code was

IBOutlet UITextView *fruitDescription
}

"syntax error before "{" token" my code was

- (void)viewDidUnload {

"syntax error before "{" token" my code was

- (void)dealloc {

Any ideas?

4

3 回答 3

2

There should be a semicolon after

IBOutlet UITextView *fruitDescription

Always try to fix the first error message you see first and recompile. Subsequent errors can go away by fixing the first one.

于 2009-07-12T07:30:01.943 回答
1

In the first case, if you were trying to declare a variable, I suspect the problem is that you're missing a semi-colon:

IBOutlet UITextView *fruitDescription;

I don't know what the second and third bits of code are meant to be doing, so it's hard to say how you should change it... please post more of the code, and explain what you want it to be doing.

于 2009-07-12T07:30:26.343 回答
0

后面缺少分号

@property(nonatomic,retain) IBOutlet UITextView *fruitDescription
                                                              ^^^^^
于 2009-07-12T08:17:34.767 回答