“(”是什么意思?
我遇到问题的代码是
#import <UIKit/UIKit.h>
@interface ZelNoteAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
UITextField *textfield;
UITextView *textview;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
(@synthesize, @dynamic UITextField *textfield;
@synthesize, @dynamic UITextView *textview;
@end
最佳答案
#import <UIKit/UIKit.h>
@interface ZelNoteAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
UITextField *textfield;
UITextView *textview;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) UITextField *textfield;
@property (nonatomic, retain) UITextView *textview;
@end
@interface ZelNoteAppDelegate
@synthesize window, textField, textView;
// ...
@end
这将帮助您再次阅读 The Objective-C Programming Language .
关于xcode - '(' 之前的预期标识符 'Synthesize",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5761125/