3

TARGET:

To achieve this.

APPROACH:

GLITCH:

The aforementioned Third Party (RKSwipeBetweenViewControllers) is basically a child of UINavigationController, manipulating UIPageViewController and UIScrollView, and so, what I am trying to achieve here... is to have this NavController embedded in to the Container View.

OUTCOME:

This, however, doesn't work and shows a black container where I'm viewDidLoad-embedding the RWSwipeViewControllers.

REFERRED:

The following, however, of no use to me:

halfer
  • 19,824
  • 17
  • 99
  • 186
N a y y a r
  • 339
  • 1
  • 6
  • 18
  • Can anybody at least provide a direction to move forward, if not the solution itself? ...cause otherwise, was thinking of going with the approach of creating a View Controller with Buttons as tabs and a common ScrollView where I'd add Gestures, in addition to changing the content offset of the ScrollView on tap of buttons. – N a y y a r Apr 04 '16 at 05:16
  • that does sounds like a good way to go. Look into UIPageViewController for handling swipable view controllers – mattsven Apr 18 '16 at 16:40
  • Hey, thanks @mattsven! But you mean, without using **Container Views**? – N a y y a r Apr 19 '16 at 05:31
  • I've not used Container Views heavily, but UIPageViewController should act similarly, in this case – mattsven Apr 19 '16 at 14:42
  • Hmmm, will try and get back to you. Right now, I'm working on using a mix of `UICollectionView` and `UITableView` in a `UIViewController`, as suggested by a friend. – N a y y a r Apr 20 '16 at 09:26

1 Answers1

0

Basically just add the ViewController into a UINavigationController and set the UINavigationController as your rootViewController:

ViewController *vc = [[ViewController alloc] init];

UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];

self.window.rootViewController = nvc;

or else

If you want to add navigation controller with storyboard then it's very simple, just follow these steps:

  • select the storyboard to which you want to attach a storyboard,
  • go to toolbar then,
  • Editor->Embed In->Navigation controller,
  • your storyboard automatically embedded with navigation controller.

Referred this link

Embedding a navigation controller in a container - Objective C

halfer
  • 19,824
  • 17
  • 99
  • 186
Vignesh
  • 592
  • 6
  • 25