Normally (when using XCode storyboard to create an UI) ctrl-drag does the job of creating a segue to an other view controller. Works perfect with an UIButton.
But how to create a segue with ctrl-drag if the UIButton is located inside a custom view (subclass of UIView that is) ?
import UIKit
// class KachelView is used several times in
// the main storyboard on entry panel.
@IBDesignable
class KachelView: UIView {
// normal stuff here
// XIB file contains a UIButton that is
// to ignite a segue in the outer view
}
Is there a way to do this inside the storyboard or am I to do it in code?