首页 > 解决方案 > 在 xcode 中添加新目标会导致编译错误

问题描述

我有一个 swift 3 应用程序。在我添加了一个与旧目标相同的新目标后,我开始遇到一些编译错误,例如:

'UIView' 类型的值?没有成员'roundCorners'

'UIImageView' 类型的值?没有成员'circleImage'

代码行是:

contactImageView.circleImage(borderWidth: 0, withBorderColor: .white)

bottomParentView.roundCorners([.bottomLeft, .bottomRight, .topRight, .topLeft], radius: 10.0)

在添加新目标之前,上面的行编译得很好,但有些东西发生了变化。有什么想法吗?

标签: iosxcodeswift3

解决方案


推荐阅读