Closed wm-j-ray closed 9 years ago
+1
Hi, to use in Storyboard you can:
-(id)initWithCoder:(NSCoder )aDecoder { self = [super initWithCoder:aDecoder]; if (self) { // Custom initialization // create child view controllers that will be managed by XLSwipeContainerController TestViewController * child_1 = [[TestViewController alloc] initWithStyle:UITableViewStylePlain]; TestViewController * child_2 = [[TestViewController alloc] initWithStyle:UITableViewStylePlain]; TestViewController * child_3 = [[TestViewController alloc] initWithStyle:UITableViewStylePlain]; TestViewController \ child_4 = [[TestViewController alloc] initWithStyle:UITableViewStylePlain]; self = [self initWithViewControllers:child_1, child_2, child_3, child_4, nil]; } return self; }
@ronnyandre @ronnyandre @ccuenca Now the master branch examples use storyboard.
Regards
Martin,
I'm trying to use this with storyboards and would like to get everything out of the AppDelegate.
Question: Do I have to use XLSwipeNavigationController? I thought I should be able to load up the view controllers and init but I can't get it working. I tried various iterations of this in a viewDidLoad and initWithNibName
Can you point me to more of a storyboard/nib example?