ios - 在 xcode 中添加新目标会导致编译错误
问题描述
我有一个 swift 3 应用程序。在我添加了一个与旧目标相同的新目标后,我开始遇到一些编译错误,例如:
'UIView' 类型的值?没有成员'roundCorners'
'UIImageView' 类型的值?没有成员'circleImage'
代码行是:
contactImageView.circleImage(borderWidth: 0, withBorderColor: .white)
和
bottomParentView.roundCorners([.bottomLeft, .bottomRight, .topRight, .topLeft], radius: 10.0)
在添加新目标之前,上面的行编译得很好,但有些东西发生了变化。有什么想法吗?
解决方案
推荐阅读
- c# - 无法从在具有自定义运行时的 Docker 中运行 .NET Core 应用程序的 App Engine 连接到 Google Cloud SQL 中的 postgres
- javascript - React JS 连续播放声音
- flutter - 如何在颤动中获取动态文本小部件的宽度?
- python - 在 Python 3 中将字典转换为数组
- javascript - 如何使 div 更大并在悬停时更改其内容?
- java - 程序创建的线程比请求的多
- magento2 - 单击自定义模块时出现错误“无效的表单密钥。请刷新页面”
- python - 在熊猫数据框中创建组平均列
- scrapy - 从 XHR 响应中抓取 JSON 数据
- wordpress - 没有显示内容的自定义简码的 wordpress 故障排除