ios - Error: Unexpected '@' in program -


i'm getting following error.

unexpected '@' in program.

my code follows:

sktexture* eyetexture1 = [sktexture texturewithimagenamed:@"eye1"]; eyetexture1.filteringmode = sktexturefilteringnearest; sktexture* eyetexture2 = [sktexture texturewithimagenamed:@"eye2"]; eyetexture2.filteringmode = sktexturefilteringnearest;      skaction* flap = [skaction repeatactionforever: [skaction animatewithtextures:@[eyetexture1,      eyetexture2] timeperframe:0.2]];  _eye = [skspritenode spritenodewithtexture:eyetexture1]; [_eye setscale:2.0]; _eye.position = cgpointmake(self.frame.size.width / 4, cgrectgetmidy(self.frame)); [_eye runaction:flap];  } @end //this error occurs. 

i've checked other answers on here, not solve issue. thanks

edit: in response, code within @implementation, not add more code due stack overflow's "more code, more detail" thing. there curly bracket opens this.

please make sure code has @implementation defined , have not deleted/commented line accidentally. check there no code after @end


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -