Hey Guys,
I'm using the utility template where they have a FlipsideViewControllerDelegate. But my MainViewController keeps giving me a warning for no definition of protocol 'FlipsideViewControllerDelegate' is found but I've clearly defined it in my FlipsideViewController. Any ideas? I copied this code from my old app and it works fine in the old app so I don't know why it's giving me that warning.
I'm using the utility template where they have a FlipsideViewControllerDelegate. But my MainViewController keeps giving me a warning for no definition of protocol 'FlipsideViewControllerDelegate' is found but I've clearly defined it in my FlipsideViewController. Any ideas? I copied this code from my old app and it works fine in the old app so I don't know why it's giving me that warning.
PHP:
@protocol FlipsideViewControllerDelegate;
@interface FlipsideViewController : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource> {
id <FlipsideViewControllerDelegate> delegate;
NSArray *options;
IBOutlet UILabel *description;
IBOutlet UILabel *answers;
IBOutlet UILabel *status;
IBOutlet UIPickerView *pickerView;
NSInteger correct;
NSInteger incorrect;
NSInteger notAttempted;
NSInteger preference;
NSManagedObjectContext *managedObjectContext_;
}
@property (nonatomic, assign) id <FlipsideViewControllerDelegate> delegate;
@property (nonatomic, retain) UILabel *description;
@property (nonatomic, retain) UILabel *answers;
@property (nonatomic, retain) UILabel *status;
@property (nonatomic, retain) UIPickerView *pickerView;
@property (nonatomic, assign) NSInteger correct;
@property (nonatomic, assign) NSInteger incorrect;
@property (nonatomic, assign) NSInteger notAttempted;
@property (nonatomic, assign) NSInteger preference;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext_;
- (IBAction)done:(id)sender;
- (IBAction)resetHistory:(id)sender;
- (void)saveOptions;
- (void)loadOptions;
- (void)countStatus;
- (void)updateStatus;
- (void)displayDescription:(NSInteger)row;
- (void)saveContext;
@end