开发者

Expected identifier before "{" token error

Hi I开发者_C百科 am making a demo off of "Beginning iphone Games Development" and I have the Expected identifier before "{" error on:

-(CGFloat) angle:
{
    return rotation*180.0/3.141592;
}

Can you please help?


Remove the colon after angle. The colon is telling the compiler that your method takes an argument, and it's reporting an error because there isn't one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜