[iPhone Duo] How to attach UIToolbar to the top of the vertical bar?

I have tried setting up the UIToolbar on the NavigationController, but it always flushed to the bottom (if there is a tabbar then it is placed above the tabbar). But then I have seen some apps be able to flush the UIToolbar to the top as well.

How does RedNote app do this?

Ok sorry, it seems like if we use a navigation bar, then the items will flush up automatically.

Follow up question: what if my app is a single page app? I dont need a navigation or tab bar in my own app, in this case, the toolbar gets flushed down.