1

We're trying to add a static footer in the Root View Controller of our Split View Controller such as in the iOS Mail app:

enter image description here

I've seen mention (1) of how to do this outside of a Split View Controller but haven't been able to get this to work with our Split View configuration.

How can you do this?

Community
  • 1
  • 1
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429
  • What did you try and what does not work? – shallowThought Dec 10 '16 at 16:53
  • The suggestions I've seen refer to embedding both a table view and a footer view in a parent view. But I couldn't see how to do that using the spot view. Doesn't seem to be a way to do this on the Storyboard. – Marcus Leon Dec 10 '16 at 20:07
  • There is no difference between a `SplitView`s Master `ViewController` and a non-splitView view controller. What did you try and what is the actual issue? – shallowThought Dec 10 '16 at 20:15
  • Figured it out (See below). I changed track here and instead of trying to embed views just went with the nav bar toolbar which seems to work well in testing so far. – Marcus Leon Dec 11 '16 at 00:46

1 Answers1

0

Figured this out with a selection of existing SO posts -

Configured the footer by using our Navigation Controller's toolbar. Just enabled the toolbar for the Nav Controller in our Storyboard.

Then added a label to the toolbar using a dummy button.

And centered that label using a flexible space item.

Community
  • 1
  • 1
Marcus Leon
  • 55,199
  • 118
  • 297
  • 429