I have code in my .h file as follows
@interface tweetViewController : UIViewController<UIPickerViewDataSource ,UIPickerViewDelegate> {
NSArray *activities;
NSArray *feelings;
}
and in my .m file i used @synthesize property
#import "tweetViewController.h"
@synthesize activites,feelings;
but it shows me error message….
You need to put it in an implementation.
Replace the
@synthesize ...line with this:You also need to declare
@propertys for this, and close the@interfacethe correct way:Replace the following lines:
With this: