2

A few months back there was a question posted regarding a custom input view, it was answered by David Berry

The answer works perfectly but I've been trying to get the same to work with a storyboard rather then a nib.

What is the equivalent code to load this with a storyboard in place of a nib?

   if let objects = NSBundle.mainBundle().loadNibNamed("InputView", owner: self, options: nil) {
        myInputView = objects[0] as UIView
    }
Community
  • 1
  • 1
BlueRad
  • 109
  • 2
  • 13
  • Why don't you add the custom input view to the view controller in the storyboard (no need for any code)? You can hide it (or position it off screen) until you want it to appear. – rdelmar May 14 '15 at 05:26

0 Answers0