我在 Swift 3 之前就开始工作了(其中 frame
是 CGRect):
extraLightBlurView.frame.makeIntegralInPlace()
但它在 Swift 3 中返回错误 Value of type 'CGRect' has no member 'makeIntegralInPlace'
。如何解决这个问题?
最佳答案
它在 Swift 3 中不可用。请改用 integral
属性:
extraLightBlurView.frame = extraLightBlurView.frame.integral
关于swift - 类型 'CGRect' 的值没有成员 'makeIntegralInPlace',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40104465/