Reputation: 12423
I wan't to add some space between the navigationbar and the content of the navigationcontroller. So I would like to change the frame of the content. However, I have been unable to figure out how to do this. This should hopefully be a easy enough task, it's probably just me that don't know the right apis. Just to clarify, this is the effect I want:
+-----------+
| TITLE |
+-----------+
<--- margin/padding that I should be able to set in code
+ - - - - - +
SOME
| TABLE- |
VIEW
| OR |
WHATEVER
+ - - - - - +
Upvotes: 0
Views: 632
Reputation: 6082
I think the easiest way is to create custom view and set it as main to all view controllers inside nav controller. Override setFrame:
method in custom view and adjust frame each time before passing it to superview.
Upvotes: 1