Weird background offset of UIToolbar when in formSheet.
- by Mike A
As you can see in the pic, the buttons from the toolbar on the right align perfectly with the segmented control on the left. They are displayed on the navigation bar. For some reason though, the background of the toolbar seems to be offset 1px to the bottom.
What is especially weird, is this exact same view controller, in fullScreen or even pageSheet, displays everything properly.
Segmented control is being allocated:
UISegmentedControl* segmentControl = [[UISegmentedControl alloc] initWithFrame:CGRectMake(0,0,300,30)];
Toolbar is being allocated:
UIToolbar* toolbar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 100,44)];
I've spent hours trying to fix this, it's driving me crazy.