I have a subclass defined like this
@protocol UMTextViewDelegate;
@interface UMTexView : UITextView <UITextViewDelegate> {
}
@property (nonatomic, assign) id<UMTextViewDelegate> delegate;
@end
@protocol UMTextViewDelegate <NSObject>
@optional
- (void)textViewDidSelectWordToDefine:(UMTexView*)textView;
@end
But I get a warning Property type 'id<UMTextViewDelegate>' is incompatible with type 'id<UITextViewDelegate>' inherited from 'UITextView'
.
How do I suppress this warning ? I tried adding this :
@protocol UMTextViewDelegate <NSObject, UITextViewDelegate>
but no luck. !!
EDIT:
I am not using ARC