I think you misunderstood the hidesBottomBarWhenPushed use. If YES, the bottom bar remains hidden until the view controller is popped from the stack.
So if I understand your question correctly:
The secondViewController should be the YES, the firstViewController should be the NO.