Can we send an two dimensional array as input for a function in Objective C.
- by srikanth rongali
I have data stored in two dimensional array. I want it to send in to a function in this way,
I have written the following in another class.
//
do
 if( array[iTemp][1] != 10 )
 {
  Enemy *enemyXX = [[Enemy alloc] init];
  [enemyXX EnemyXXTarget: array[iTemp][1]];
  iTemp++;
 }while( iTemp != 9); 
//
-(void)EnemyXXTarget:(id)sender; is function declared in Enemy class. But is giving me an error 
error: incompatible type for argument 1 of 'EnemyXXTarget:'
Where I am wrong ? Please help me.
Thank You.