Try this : You need to start with view based application. And then create a UITabbarController in you appDelegate file. Appdelegate.
H UITabBarController *tabBarController; // set properties Appdelegate. M // Synthsize tabBarController = UITabBarController alloc init; tabBarController. Delegate=self; //Adding Search,Nearby,Map,AboutUs,Favorites Tabs to tabBarController Search * search = Search alloc init; UINavigationController *searchNav = UINavigationController alloc initWithRootViewController:search; Nearby* nearby = Nearby alloc init; UINavigationController *nearbyNav = UINavigationController alloc initWithRootViewController:nearby; Map* map = Map alloc init; UINavigationController *mapNav = UINavigationController alloc initWithRootViewController:map; AboutUs* aboutUs = AboutUs alloc init; UINavigationController *aboutUsNav = UINavigationController alloc initWithRootViewController:aboutUs; Favorites* favorites = Favorites alloc init; UINavigationController *favoritesNav = UINavigationController alloc initWithRootViewController:favorites; NSArray* controllers = NSArray arrayWithObjects:searchNav,nearbyNav,mapNav,aboutUsNav,favoritesNav, nil; tabBarController.
ViewControllers = controllers; window addSubview:tabBarController. View; You can accordingly manage in which tab you want to place navigation controller or only a view controller. Then in each of the view controllers mentioned above you need to implement - (id)init {} in which you can set Tab name and image.
Rename the tbs as per your requirement. Place 2 buttons in the one of the views which is Navigation controller. Hope this helps.
But here Every thing I have done through IB…. Now according to my requirement there will be a button on the view with respective to 1st tab bar and on pressing that button another view will load…. Now problem is that this loaded view is loaded in in whole screen so that tabbarcontroller is hiding….
– Archana Chaurasia May 24 at 5:36 I always prefer using code rather than IB. Just check that you are correctly adding views in navigation bar and tabbar controller. There may somewhere you are miissing to add second view i.
E the view which appears when button is clicked, in tabbar. – Nitish May 24 at 5:42.
Typical application navigation allows the user to freely move forwards and backwards, between tabs etc. This is facilitated by pushing and popping ViewController's on the navigation bar stack. In certain scenarios you want to force the user to complete some task and this is when you should use a modal view controller. When the application presents a modal view the idea is that the user should NOT be able to navigate away from the view, instead they should only be able to complete or cancel the action and hence the default behavior for a modal view is to hide the navigation bar, tab bar etc. It sounds to me from your description that you are performing navigation and not a modal task and thus can I recommend using pushViewController instead of presentModalViewController?
If you are only using presentModalViewController because you want a bottom to top animation then you'll need to use a custom animation.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.