TheAppledocs对于CAMetalLayer声明属性presentsWithTransaction是:ABooleanvaluethatdetermineswhetherthelayerpresentsitscontentusingaCoreAnimationtransaction因为我正在使用UIKit来驱动一些Metal动画(类似于Apple在这个WWDC2012session中为OpenGL建议的方法),我假设这是启用它的正确时机。我有一个Metal“背景”View,上面覆盖了一些UIKit组件(也是动画),所以这听起来非常像适用的用例:Bydefault[.presen