lbrendanl / SwiftSwipeView

92 stars 19 forks source link

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

Open ghost opened 9 years ago

lbrendanl commented 9 years ago

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