我犯了一个错误,就是在没有等待pod更新的情况下将我的项目更新到Swift4.2。我已经慢慢更新了我所有的代码,但有一行我似乎无法理解。varanimationRect=UIEdgeInsetsInsetRect(frame,UIEdgeInsets(top:padding,left:padding,bottom:padding,right:padding))我收到的错误是,UIEdgeInsetsInsetRect'hasbeenreplacedbyinstancemethod'CGRect.inset(by:)如有任何帮助,我们将不胜感激! 最佳答案