I am developing an application which contains a login page. The first page should be a login page (with a view controller). Once the user has logged in I am going to show another view from that I need to show a tab bar, when the user logs out the same login screen has to be shown. How can I achieve this? I am developing an application which contains a