needsDisplay()

返回一个布尔值,指示该Layer是否已标记为需要更新。

定义

  1. func needsDisplay() -> Bool

返回值

如果需要更新Layer,则为true