0
使用模擬器(iPhone 4s,5,6),我發現在iOS7下面的代碼可以正常工作,但是在iOS8上筆劃沒有繪製。 (w和h在其他地方定義)。在ios8上SKShapeNode strokeColor是否破碎?
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上
確認。僅適用於設備 – meisenman 2014-10-19 22:16:10