cocos2d-x-2.1.5版本在Xcode4.2中首次编译ccimage Semantic Issue出错解决方法

// XXX: ios7 casting
        [str drawInRect:CGRectMake(textOriginX, textOrigingY, textWidth, textHeight) withFont:font lineBreakMode:NSLineBreakModeWordWrap alignment:(NSTextAlignment)align];

  这一句会报错,意思是 NSLineBreakModeWordWrap和NSTextAlignment 没有定义, 那么把这两个类名改为UI开头的就能解决编译问题。

[str drawInRect:CGRectMake(textOriginX, textOrigingY, textWidth, textHeight) withFont:font lineBreakMode:UILineBreakModeWordWrap alignment:(UITextAlignment)align];

  

posted @ 2013-12-01 15:06  xdxer  阅读(429)  评论(0编辑  收藏  举报