SwiftSwipeView icon indicating copy to clipboard operation
SwiftSwipeView copied to clipboard

Is it possible to use Storyboards instead of .xib? And how?

Open ghost opened this issue 10 years ago • 1 comments

ghost avatar May 06 '15 21:05 ghost

Yeap! If you add view controllers to the main storyboard, and set their Storyboard IDs, you can replace the lines in the ContainerViewDelegate class that looks like this: var AVc = AViewController(nibName: "AViewController", bundle: nil);

With something that looks like this: var AVc = storyboard!.instantiateViewControllerWithIdentifier("YourID") as! UIViewController

lbrendanl avatar May 14 '15 23:05 lbrendanl