2
votes

I've got a very stubborn UIToolbar, who refuses to change its height no matter how may different methods I try.

I've seen this question and it does not work for me

Is there a way to change the height of a UIToolbar?

It is a toolbar for my cameraOverlayView while taking a picture. here is what I've tried and has not worked:

-Adjusting its current frame's height

-Creating a new CGRect for its frame

-Subclassing UIToolbar and editing its drawRect function

- (void)drawRect:(CGRect)rect
{
  //Create a rectangle for the toolbar
  CGRect rectArea = CGRectMake(0, 0, 320, 70);
  [self setFrame:rectArea];

}

Is there some property I'm unaware of which prevents a UIToolbar from adjusting its height?

1
Ignore what I prev. said: stackoverflow.com/questions/2135407/…Dair
'setFrame:' should work fine. If you are going to override drawRect you should probably call '[super drawRect:rect]'Joe

1 Answers