【发布时间】:2014-10-19 16:11:11
【问题描述】:
使用模拟器(iPhone 4s、5、6),我发现在 iOS7 上以下代码可以正常工作,但在 iOS8 上没有绘制笔画。 (w 和 h 在别处定义)。
SKShapeNode* userGuessSpace = [SKShapeNode node];
CGPathRef ref = CGPathCreateWithRect(CGRectMake(0,0,w,h),nil);
userGuessSpace.fillColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.35];
userGuessSpace.strokeColor = [UIColor colorWithRed:255 green:255 blue:255 alpha:1];
[userGuessSpace setPath:ref];
CGPathRelease( ref );
尚未在设备上进行测试,是仅此模拟器还是我必须做其他事情?
iOS7
iOS8
【问题讨论】:
标签: ios8 sprite-kit skshapenode