我正在尝试将以下库实现到我的项目中:
https://github.com/knutigro/COBezierTableView
public extension UIView { public struct BezierPoints { static var p1 = CGPoint.zero static var p2 = CGPoint.zero static var p3 = CGPoint.zero static var p4 = CGPoint.zero } }
在我的MainVC中,这配置如下:
UIView.BezierPoints.p1 = CGPoint(... UIView.BezierPoints.p2 = CGPoint(... UIView.BezierPoints.p3 = CGPoint(... UIView.BezierPoints.p4 = CGPoint(...
在Swift 2.3演示项目中没有错误.在Swift 3项目中,我收到错误:
“由于’内部’保护水平,p1无法进入.”
有人可以在这里解释一下这个问题,我猜Swift 3有一些新的幕后权限接管需要被覆盖.
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。