Do not display "Back to Previous App" in iOS status bar

Asked 2 years ago, Updated 2 years ago, 142 views

We are developing at Unity.
I have the iOS app display the status bar, but I don't want it to display "Back to the previous app".

void_HidesBackButton()
{
    UINavigationController* navigationController= (UINavigationController*) UnityGetGLViewController();
    navigationController.navigationItem.hidesBackButton=YES;
}

"I created a plug-in like this and called it, but ""Back to the previous app"" was displayed."
How can I prevent it from displaying?

ios objective-c unity2d

2022-09-30 19:53

1 Answers

That part is different from the Back button on the navigation bar, so you cannot erase it with that code.

Also, since no API is provided to manipulate the objects displayed in the status bar, it is not possible to customize the display in a legitimate manner even in regular iOS app development.

Therefore, there is no other way but to hide the status bar.


2022-09-30 19:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.