0
,因为我有Xcode的更新为8,新的版本,下面的代码的Xcode 8.0转换问题
func center(_ usePresentationLayer: Bool) -> CGPoint
{
if usePresentationLayer, let presentationLayer = layer.presentation() as! CALayer
{
return presentationLayer.position
}
return center
}
结果
Error - Value of type 'CALayer' has no member 'presentation'
如何解决使用SWIFT 3.0 XCode中这个问题?
'request'?你确定这是你的帖子回答的问题吗? – HAS
好吧,它是。但问题随着时间而改变。最初,有这个错误的截图:http://i.stack.imgur.com/UfTur.png –