-(FileGame *)objectAtXandY:(int) posX secondPos:(int)posY
{
if (posX < 0 || posX >= kBoxWidth || posY < 0 || posY >= kBoxHeight)
return OutBorderStart;
return (FileGame*)[[content objectAtIndex:posY]objectAtIndex:posX];
}
-(void) checkWith:(BOOL)orien
{
int iMax = (orien == isLandscape) ? size1.width : size1.height;
int jMax = (orien == isPortrait) ? size1.height : size1.width;
for (int i=0; i<iMax; i++)
{
int count = 0;
int balValue = -1;
for (int j=0; j<jMax; j++)
{
FileGame* tile =[self objectAtXandY:(orien == isLandscape) ?i :j secondPos:(orien == isPortrait) ?j :i];
[readyToRemove addObject:tile];
}
}
FileGame* square = [readyToRemove objectAtIndex:2];
square.value1 = 0;
if(square.value1==balVal)
{
//some thing to do
}
else{
//some thing to do
}
}
Here readyToRemove is NSMutableArray,balVal is int,FileGame is CCNode.While i run this i'm getting -[__NSCFNumber value1]: unrecognized selector sent to instance error help me.