Custom input view as keyboard for textfield in Swift using OSX 10.9 and Xcode 6.1.1 +
问题 I am having trouble with connecting buttons after I load a custom input view keyboard. My main screens are storyboard and my custom view is a xib. The input view is a nib with the file owner pointing to its swift class. I am loading the input view with code in another view controller using: extension UIView { class func loadFromNibNamed(nibNamed: String, bundle : NSBundle? = nil) -> UIView? { return UINib( nibName: nibNamed, bundle: bundle ).instantiateWithOwner(nil, options: nil)[0] as?