0

Based on what I have read on various posts on here, this should make my UIToolbar 200px taller than the default 44.

- (void)viewDidLoad
{

    [self.navigationController setToolbarHidden:NO animated:NO];
    CGRect toolbarFrame = self.navigationController.toolbar.frame;
    toolbarFrame.size.height += 200;
    toolbarFrame.origin.y -= 200;
    self.navigationController.toolbar.frame = toolbarFrame;
}

However, its rendering at the standard 44 when the view loads. What am I doing wrong?

fansonly
  • 1,150
  • 4
  • 14
  • 29

1 Answers1

0

The docs say that you can't directly modify UIToolbar attached to the UINavigationController.

I ended up creating a new one and adding it to the subview.

fansonly
  • 1,150
  • 4
  • 14
  • 29