adding subview on self.tabbarcontroller.view

716 Views Asked by At

I have added a viewcontroller's view on self.tabbarcontroller.view. But in that case , I am unable to change frame of iboutlets in subview added. How to change the frames ?Please help.. thanks

- (void)addPopup
{
  popUpDataViewController = [[PopUpDataViewController alloc]init];
  popUpDataViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"popUpData"];

  popUpDataViewController.view.frame = self.view.frame;
  CGRect oldFrame = popUpDataViewController.view.frame;
  oldFrame.size.height = oldFrame.size.height + self.tabBarController.tabBar.frame.size.height;
  popUpDataViewController.view.frame = oldFrame;

  [self.tabBarController.view addSubview:popUpDataViewController.view];

}
0

There are 0 best solutions below