Hi,
I’m using the following code :
Handheld.PlayFullScreenMovie(“movie.mov”, Color.black, FullScreenMovieControlMode.Minimal);
When the movie stops playback, I end up having the iOS status bar on, while it was set to off initially.
Is this the expected behaviour ?
You’ll have to manually hide the status bar again. Here is how I do it:
obj-c code, place this in your plugins/iOS folder and name it HideStatusBar.mm
extern "C" {
void _HideStatusBar()
{
[[UIApplication sharedApplication] setStatusBarHidden:YES];
}
}
Then in Unity use this code right after you return from your fullscreen movie:
[DllImport ("__Internal")]
private static extern void _HideStatusBar ();
public static void HideStatusBar ()
{
if (Application.platform != RuntimePlatform.OSXEditor)
_HideStatusBar ();
}
Note: Status bar code has changed in iOS7 so this code won’t work