Browse Source

iOS tweak for view visibility when being initialised.

tags/2021-05-28
jules 12 years ago
parent
commit
5639d1befd
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm

+ 2
- 3
modules/juce_gui_basics/native/juce_ios_UIViewComponentPeer.mm View File

@@ -480,7 +480,7 @@ UIViewComponentPeer::UIViewComponentPeer (Component& comp, const int windowStyle
view = [[JuceUIView alloc] initWithOwner: this withFrame: r];
view.multipleTouchEnabled = YES;
view.hidden = ! component.isVisible();
view.hidden = true;
view.opaque = component.isOpaque();
view.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent: 0];
view.transform = CGAffineTransformIdentity;
@@ -515,11 +515,10 @@ UIViewComponentPeer::UIViewComponentPeer (Component& comp, const int windowStyle
window.rootViewController = controller;
[window addSubview: view];
window.hidden = view.hidden;
}
setTitle (component.getName());
setVisible (component.isVisible());
Desktop::getInstance().addFocusChangeListener (this);
}


Loading…
Cancel
Save