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];