2009-08-20 22 views

回答

1

我在使用UIWebView中的HTML5標籤時看到過相同的消息。當用顏色填充形狀時,它似乎由fill()調用觸發。我無法找到問題,雖然在fillStyle()中替換十六進制顏色可以阻止錯誤出現在我的案例中。

context.fillStyle = '#666'; //causes errors 
context.fillStyle = 'rgb(100,100,100)'; //no errors 
context.fill(); //error appeared when this statement was executed 

我這個問題的來源猜測是CoreGraphics在渲染相關的JavaScript API調用的Safari瀏覽器的使用一個不起眼的錯誤。