title: Universal Apps concept for iPhone and iPad
body: <p>am a noob at universal apps so please help me out and let me know if this can be done, I am creating a universal app and for doing this i have written the code and made the settings in each of my view controllers present in the iPhone and iPad group and at runtime i am identifying the device whether its iphone or ipad i am using the below method</p>
  
  <pre>
   if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
      {
          myiPad_View *ipadObj = [[myiPad_View alloc]init];
          [self.window addSubview:ipadObj.view];
  
      }
      else
      {
          myiPhoneView *obj = [[myiPhoneView alloc]init];
          [self.window addSubview:obj.view];
      }
  </pre>
  
  <p>Now the query is my boss is eating my head for this he is telling me that can we write just one class and at run time when the app will be launched either in iphone or ipad device or simulator the view controller will adjust the frames accordingly i have done this by using the above method but he says if you do like this then the code will increase and you have to suffer a huge headache so actually he is right but haven't found of any alternate solution to this, so before saying this cant be done i thought of taking some expert advice</p>