[SOLVED]iOS Hide Status Bar

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Love&Peace
Regular
Posts: 52
Joined: Wed Dec 17, 2014 8:19 pm
Contact:

[SOLVED]iOS Hide Status Bar

#1 Post by Love&Peace »

Hi.

I made Xcode Project with renios.

I want to remove Status Bar so, I ticked "Hide status bar" in General, and added keys "View controller-based status bar appearance" to "No", "Statrus bar is initially hidden" to "YES"

But the status bar is still remain.
스크린샷 2016-10-11 오후 10.35.25.png
Is there anyone know the solution??

Thanks. :D
Last edited by Love&Peace on Wed Oct 12, 2016 3:03 am, edited 1 time in total.

Jibus
Regular
Posts: 135
Joined: Tue May 26, 2015 9:45 am
Contact:

Re: iOS Hide Status Bar

#2 Post by Jibus »

Set the app in full screen in xcode.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: iOS Hide Status Bar

#3 Post by PyTom »

Actually, do it in Ren'Py, with something like:

Code: Select all

default preferences.fullscreen = True
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Love&Peace
Regular
Posts: 52
Joined: Wed Dec 17, 2014 8:19 pm
Contact:

Re: iOS Hide Status Bar

#4 Post by Love&Peace »

PyTom wrote:Actually, do it in Ren'Py, with something like:

Code: Select all

default preferences.fullscreen = True

Thank you PyTom. It worked.

I checked options.rpy and set config.default_fullscreen to True, and the status bar has gone.

Code: Select all

    config.default_fullscreen = True
Thank you!
스크린샷 2016-10-12 오후 1.01.44.png

shanash
Newbie
Posts: 1
Joined: Thu Jan 30, 2020 12:49 am
Contact:

Re: [SOLVED]iOS Hide Status Bar

#5 Post by shanash »

I tried to upper way. But didn't work.

And I put this code.

Utility.m

Code: Select all

void HideStatusBar()
{
    [[UIApplication sharedApplication] setStatusBarHidden:YES];
}
main.c

Code: Select all

static int start_python(char *argv0) {
    ...
    
    HideStatusBar();

    if (PyErr_Occurred() != NULL) {
        PyErr_Print();
        if (Py_FlushLine())
			PyErr_Clear();
        return 1;
    }

    return 0;
}
Is there anything else I can try?
Plz Help me

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot]