SwiftWarrior
SwiftWarrior

Reputation: 1964

UIToolBar Height won't change

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?

Upvotes: 2

Views: 5978

Answers (1)

Mehul Mistri
Mehul Mistri

Reputation: 15147

Just Follow How to change the height of UIToolbar

Upvotes: 2

Related Questions