In my ViewController.h, I have the following.
#import <UIKit/UIKit.h>
#import <TimesSquare/TimesSquare.h>
@interface PlusCalendarView : TSQCalendarView;
@end
@interface ViewController : UIViewController
@property (nonatomic, strong) NSCalendar *calendar;
//@property (strong, nonatomic) IBOutlet TSQCalendarView *myCalendarView;
@property (strong, nonatomic) IBOutlet PlusCalendarView *myCalendarView;
@end
I want to override some methods in TSQCalendarView, so I created a subclass called PlusCalendarView. My storyboard looks like below:
The one above is a UIView element and the other is a tableView. The UIView element has a custom class called "PlusCalendarView" and is connected to the PlusCalendarView outlet in ViewController.h
My question: This fails with an error Unknown class PlusCalendarView in Interface Builder file. and I assume that's because storyboard doesn't know about my custom subview called PlusCalendarView. What should I change to fix this problem?