title: Adding a UITabBar and tabbaritems to the UITabBar through code ( NOTE: I don't want to implement TabBarController )
body: <p>I have searched a lot and beleive me i have come across many questions and sample codes but none of them fit my requirement , it's crazy how can there not be an answer for this.</p>
  
  <p>My requirements specifically:-
  1. I want a UITabBar not a UITabBarController
  2. I want it to be on the top-right corner of my UIView
  3. I want two tab bar items on it( need not be assiciated with two view controllers)</p>
  
  <p>Now what i did was </p>
  
  <pre><code>UITabBar *myTabBar=[UITabBar alloc]initWithFrame:myTabFrame];
  [self.view addSubView:myTabBar];
  myTabBar.delegate=self;
  </code></pre>
  
  <p>Now i am stuck at how do i add tabbar items to this UITabBar.</p>
  
  <p>I guess it's probably easy but every code i found has TabBarController added to it, but i don't want to use tabbarcontroller as for starters it only comes on the bottom of the screen , plus that's not the requirement.</p>