iOS8. My iPad app rotates it's orientation just fine, except when there's a modal window present. If I try to change oriention a JUCE assertion is called in juce_ios_UIViewComponentPeer.mm line 297:
static void sendScreenBoundsUpdate (JuceUIViewController* c)
{
JuceUIView* juceView = (JuceUIView*) [c view];
==> jassert (juceView != nil && juceView->owner != nullptr);
juceView->owner->updateTransformAndScreenBounds();
}
The juceView->owner is NULL, but I can't seem to figure out why, probably due to the fact that I don't completely understand exactly what's going on. Here's my modal window constructor:
MyWindow::MyWindow ()
: DialogWindow ("",
Colour(0xaa000000),
true)
{
about = new AboutComponent();
setUsingNativeTitleBar(true);
setContentOwned (about, false);
setAlwaysOnTop(true); // fixes iOS-only bug in which some of the buttons on this window aren't clickable
centreWithSize (600, 300);
setResizable (false, true);
setVisible(true);
setOpaque(false);
enterModalState(true, nullptr, false);
toFront(true);
runModalLoop();
}
