I found a strange thing about storyboards,
My situation is using a swift project, and I can no longer connect to the custom protocol delegation from the storyboard.
The old connection that came with the old version of Xcode is good, but I can no longer connect to any new agents Yes.
Once I remove the connection, I can’t even reconnect to the old one.
Is anyone in this situation?
=============================Update============ ======= ===========
View Class
@objc public protocol VideoViewResizeDelegate {
func shouldVideoViewResetLayout(videoView: GvVideoView) -> Bool;
}
@IBOutlet var resizeDelegate: VideoViewResizeDelegate?; pre>ViewController Class
@IBDesignable public class ViewController: UIViewController, VideoViewResizeDelegate {
...
}
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 o utlet using
Interface Builder, then change the outlet's type back to the protocol.
(17023935)
This is bad...
p>
I just upgraded my mac to 10.10 and Xcode to 6.1,
I found a strange thing about storyboards,
My The situation is that using the swift project, it is no longer possible to connect to the custom protocol delegation from the storyboard.
The old connection that came with the old version of Xcode is good, but I can no longer connect to any new agents.
Once I remove the connection, I cannot even reconnect to the old one.
Is anyone experiencing this?
=============================Update============ ======= ===========
View Class
@objc public protocol VideoViewResizeDelegate {
func shouldVideoViewResetLayout(videoView: GvVideoView) -> Bool;
}
@IBOutlet var resizeDelegate: VideoViewResizeDelegate?; pre>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)This is terrible...