title: IOS: How to change the position of UITabbar to the top of view
body: <p>i am using <code>UITAbBar</code> in my project i want to change its position from bottom to top of view.
  what code i have to put for this. </p>
  
  <pre><code>{
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  
      self.view.backgroundColor = [UIColor whiteColor];
     self.title = @"Welcome";
  
  
      _friendviewcontroller = [FriendsViewController new];
      _homeviewcontroller = [HomePageViewController new];
      _notifviewcontroller = [NotificationViewController new];
      _messageviewcontroller = [MessagesViewController new];
  
      self.tabbarcontroller = [[UITabBarController alloc]init];
  
      self.viewControllers = [NSArray arrayWithObjects:_homeviewcontroller,_messageviewcontroller,_friendviewcontroller,_notifviewcontroller, nil];
  
      //UITabBar *tabBar = self.tabBarController.tabBar;
      UITabBarItem *item0 = [self.tabBar.items objectAtIndex:0];
      UITabBarItem *item1 = [self.tabBar.items objectAtIndex:1];
      UITabBarItem *item2 = [self.tabBar.items objectAtIndex:2];
      UITabBarItem *item3 = [self.tabBar.items objectAtIndex:3];
  }
  </code></pre>