mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
iOS: Check UIStatusBarHidden .plist value in prefersStatusBarHidden property to correctly hide/show the status bar when requested
This commit is contained in:
parent
b5496b16f3
commit
56f9f83638
1 changed files with 4 additions and 1 deletions
|
|
@ -327,7 +327,10 @@ MultiTouchMapper<UITouch*> UIViewComponentPeer::currentTouches;
|
||||||
|
|
||||||
- (BOOL) prefersStatusBarHidden
|
- (BOOL) prefersStatusBarHidden
|
||||||
{
|
{
|
||||||
return isKioskModeView (self);
|
if (isKioskModeView (self))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return [[[NSBundle mainBundle] objectForInfoDictionaryKey: @"UIStatusBarHidden"] boolValue];
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined (__IPHONE_11_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0
|
#if defined (__IPHONE_11_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue