Search code examples
iphonecocoa-touchuitabbarcontrolleruitoolbar

Toolbar not showing at the top of the page in Tab Bar Based Application in iPhone


In my iPhone app, I am using a tab-bar based application as my basic application type.

I created one toolbar at the top of the page in FirstViewController of tab-bar based app.

Also I changed File's Owner Class to "FirstViewController" aqnd have connected the outlets to toolbar buttons.

Now the problem is that when I run the project I don't see any toolbar at the top my page.

What could be wrong?


Solution

  • Got the answer.

    All credit goes to Madhup.

    Check Madhup's Comment below this Question. He is right because of tab bar the toolbar went out of the page and was hidden under status bar in iphone.

    Tried moving it a little below and now I am able to see the toolbar. :)

    Thanks Madhup!!

    Hope this helps someone