J Johnny5 Member Licensed User Oct 31, 2021 #1 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
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 Oct 31, 2021 #2 Johnny5 said: Question 1: How do I hide the home bar in iOS. (Objective C)? Click to expand... 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 said: Question 1: How do I hide the home bar in iOS. (Objective C)? Click to expand... 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))
J Johnny5 Member Licensed User Oct 31, 2021 #3 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 18.1 KB · Views: 244 Upvote 0
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
Alexander Stolte Expert Licensed User Longtime User Oct 31, 2021 #4 Thats not possible, it is hiding automatically Upvote 0