Sunday, 15 September 2013

[__NSCFString NSInteger]: unrecognized selector sent to instance

[__NSCFString NSInteger]: unrecognized selector sent to instance

Why I have this error when I'm trying to recover/compare my NSInteger

[__NSCFString subTag]: unrecognized selector sent to instance
This is how I have declared subTag, which is part from an object called
OptionSubView:
@property (nonatomic, assign) NSInteger subTag;
Then, I'm trying to compare this property, and my code crash:
for(OptionSubView *subV in self.optionsSubViews){
if( subV.subTag == segControl.tag){
subViewSelected = subV.tipo;
}
}

No comments:

Post a Comment