开发者

Expected Identifiers '(' before 'Synthesize"

开发者 https://www.devze.com 2023-02-28 00:13 出处:网络
What does the \'(\' mean? And the code im having trouble with is #import <UIKit/UIKit.h> @interface ZelNoteAppDelegate : NSObject <UIApplicationDelegate> {

What does the '(' mean?

And the code im having trouble with is

#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

It would help you to read again The Objective-C Programming Language.

0

精彩评论

暂无评论...
验证码 换一张
取 消