作者:人在做天在看1212_906 | 来源:互联网 | 2023-05-18 00:17
Ijustupgradedmymacto10.10andXcodeto6.1,我刚刚将我的mac升级到10.10,将Xcode升级到6.1,foundastranget
I just upgraded my mac to 10.10 and Xcode to 6.1,
我刚刚将我的mac升级到10.10,将Xcode升级到6.1,
found a strange thing which about storyboard,
发现一个关于故事板的奇怪的事情,
my case is using a swift project, can not connect custom protocol delegate from storyboard anymore.
我的情况是使用swift项目,无法再从故事板连接自定义协议委托。
the old connected which comes with old version of Xcode is fine, but I can not connect any new delegate anymore.
老版Xcode附带的旧连接很好,但我再也无法连接任何新的代理了。
even I can not reconnect the old one once I removed the connected.
一旦我移除了连接,我甚至无法重新连接旧的。
Does anyone occur this situation ??
有没有人出现这种情况?
============================== Updated ==============================
==============================更新=================== ===========
View Class
查看课程
@objc public protocol VideoViewResizeDelegate {
func shouldVideoViewResetLayout(videoView: GvVideoView) -> Bool;
}
@IBOutlet var resizeDelegate: VideoViewResizeDelegate?;
ViewController Class
ViewController类
@IBDesignable public class ViewController: UIViewController, VideoViewResizeDelegate {
...
}
2 个解决方案