Strange XCode Warning
Strange XCode Warning
- Subject: Strange XCode Warning
- From: Dave <email@hidden>
- Date: Tue, 15 Sep 2015 16:36:08 +0100
Hi,
I get "Instance method 'conformsToProtocol:' found instead of class method 'conformsToProtocol:’” on the conformsToProtocol statement marked below.
If I remove the <LTWDetailViewProtocol> on the method definition, the warning goes away?
Any idea how to fix this so I don’t get the warning?
Thanks a lot
Dave
-(instancetype) initWithDetailViewClass:(Class<LTWDetailViewProtocol>) theDetailViewClass andDetailItemInfoDictionary:(NSDictionary*) theDetailItemInfoDictionary
{
if ([theDetailViewClass conformsToProtocol:@protocol(LTWDetailViewProtocol)] == NO) //********************************
return nil;
self = [self initWithDetailViewClass:theDetailViewClass];
if (self == nil)
return self;
self.pDetailItemInfoDictionary = theDetailItemInfoDictionary;
return self;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden