我刚刚将我的mac升级到10.10,将 Xcode升级到6.1, 发现一个关于故事板的奇怪的事情, 我的情况是使用swift项目,无法再从故事板连接自定义协议委托. 老版Xcode附带的旧连接很好,但我再也无法
发现一个关于故事板的奇怪的事情,
我的情况是使用swift项目,无法再从故事板连接自定义协议委托.
老版Xcode附带的旧连接很好,但我再也无法连接任何新的代理了.
一旦我移除了连接,我甚至无法重新连接旧的.
有没有人出现这种情况?
==============================更新=================== ===========
View Class
@objc public protocol VideoViewResizeDelegate { func shouldVideoViewResetLayout(videoView: GvVideoView) -> Bool; } @IBOutlet var resizeDelegate: VideoViewResizeDelegate?;
ViewController Class
@IBDesignable public class ViewController: UIViewController, VideoViewResizeDelegate { ... }https://developer.apple.com/library/ios/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051
Interface Builder
Interface Builder does not support connecting to an outlet in a Swift
file when the outlet’s type is a protocol. Declare the outlet’s type
as AnyObject or NSObject, connect objects to the outlet using
Interface Builder, then change the outlet’s type back to the protocol.
(17023935)
这很糟糕……