سؤال

I have a vertical navigation that I want to use similar to a TabBarController.

In lue of my question, is it possible to set up storyboard relationships with IB? If not, is there any other IB way of going about this?

هل كانت مفيدة؟

المحلول 2

From the research I've done, this is not currently possible.

What I ended up doing was only one UIViewControler with my navigation buttons on the left and a single UIView on the right. Depending on the navigation button touched, I "inflate" a UIView XIB using [[[NSBundle mainBundle] loadNibNamed:@"someNib" owner:self options:nil] objectAtIndex:0].

نصائح أخرى

I'm not sure if i understand your question correctly. When you are in IB and have opened your storyboard you can press ctrl on your keyboard and drag a line from one of your navigation items to the desired target view controller. IB will setup the relationship for you which is called a storyboard segue. This will handle the view controller transition.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top