属性“scrollView”需要方法“-scrollView”定义 - 使用@synthesize、@dynamic 还是提供方法实现?
这是什么意思?
属性“scrollView”需要定义方法“-scrollView” - 使用@synthesize、@dynamic还是提供方法实现?
它告诉我与 @end
在同一行
#import <UIKit/UIKit.h>
@class ViewScrollViewController;
@interface ViewScrollAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
ViewScrollViewController *viewController;
UIScrollView *scrollView;
UITextView *textView;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet ViewScrollViewController *viewController;
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
@property (nonatomic, retain) IBOutlet UITextView *textView;
@end
what does this mean??
property 'scrollView' requires method '-scrollView' to be defined - use @synthesize, @dynamic or provide a method implementation?
it tells me that on the same line as @end
#import <UIKit/UIKit.h>
@class ViewScrollViewController;
@interface ViewScrollAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
ViewScrollViewController *viewController;
UIScrollView *scrollView;
UITextView *textView;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet ViewScrollViewController *viewController;
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
@property (nonatomic, retain) IBOutlet UITextView *textView;
@end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你是在合成属性吗?
像这样..
编辑:基于询问者编辑的问题的代码片段..
在您的.m文件中..
Are you synthesizing the property?
Like this..
Edit : code snippets based on askers edited question..
In your .m file..