Is there a way to enable the bottom toolbar in the Control View Collection?

I created and implemented a collection view controller, and now I want to add a bottom toolbar for navigation. On the Simulated Metrics tab in the collection view manager, I have enabled the bottom toolbar and it appears in the storyboard, and I can edit and interact with it.

When I launch the application in the iPad simulator, the bottom toolbar does not appear. Are there any settings that I’m missing, which makes them show in the storyboard, and not in the application?

Any suggestions would be appreciated.

+5
source share
2 answers

UIViewController UINavigationController. Simulated Metrics UINavigationController. UICollectionViewController.

Xcode 6.3.2.

+4

Interface Builder.

:

// viewWillAppear:

// set up toolbar
UIToolbar *toolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height-44, self.view.bounds.size.width, 44)];
toolbar.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
[self.view addSubview:toolbar];

// instantiate spacer, middleItem
toolbar.items = @[spacer, middleItem, spacer];
+2

All Articles