gpt4 book ai didi

xcode - '(' 之前的预期标识符 'Synthesize"

转载 作者:行者123 更新时间:2023-11-29 05:04:59 25 4
gpt4 key购买 nike

“(”是什么意思?

我遇到问题的代码是

#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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com