objective c - Why am I getting an ARC error with this method? -
this here method im using display items on screen line
cgsize gameareasize = [controller gameareasize];
says receiver type controller2 instance message not declare method selector gameareasize
+(id)ship:(controller2*)controller { cgsize gameareasize = [controller gameareasize]; cgpoint center = cgpointmake(gameareasize.width/2, gameareasize.height/2); items2* item = [[items2 alloc] initat:center withradius:16 andimage:@"viper"]; [item setmovetopoint:center]; [item setspeed:.8]; }
and after use [controller removeactor:item];
remove item off of screen says same thing not being able call removeactor
automatic reference counting issue
this here method im using display items on screen line says receiver type controller2 instance message not declare method selector and after use | ||||
controller2
class not implement methods calling on it. – evan mulawski jul 7 '12 @ 1:09