iOS Question Home Bar in iOS

Johnny5

Member
Licensed User
Hi everyone!!! Hope your all doing good!!!
I'm Slowly learning. lol!!!

Question 1: How do I hide the home bar in iOS. (Objective C)?

Saw this code for swift:
override var prefersHomeIndicatorAutoHidden: Bool {
return true
}

Question 2: How do I turn off the "Shake To Undo" via code when my app starts?

Thanks,
Johnny5
 

Alexander Stolte

Expert
Licensed User
Longtime User
Question 1: How do I hide the home bar in iOS. (Objective C)?
you mean the NavigationBar right?
Put this in the Project Attributes
B4X:
    #PlistExtra:<key>UIStatusBarStyle</key>
    #PlistExtra:<string>UIStatusBarStyleLightContent</string>
    #PlistExtra:<key>UIViewControllerBasedStatusBarAppearance</key>
    #PlistExtra:<false/>
and this in the Application_Start Event
B4X:
    NavControl.NavigationBarVisible = False
    
    Dim no As NativeObject=NavControl
    no.GetField("interactivePopGestureRecognizer").RunMethod("setDelegate:",Array(Null))
 
Upvote 1

Johnny5

Member
Licensed User
Thanks for replying!!!
Actually. I was looking to hide white bar at the bottom of the screen.
It replaces the physical home button.

Thanks,
Johnny5
 

Attachments

  • White Home Bar.jpg
    White Home Bar.jpg
    18.1 KB · Views: 206
Upvote 0
Top