M Marc Van Cauwenberghe Member Licensed User Longtime User Mar 10, 2019 #1 Hi, I often see this kind of construct B4X: Dim no As NativeObject = NavControl no.GetField("navigationBar").RunMethod("setBarStyle:", Array(1)) Could anyone explain this or point me to some explanation Msny thanks Marc Last edited: Mar 10, 2019
Hi, I often see this kind of construct B4X: Dim no As NativeObject = NavControl no.GetField("navigationBar").RunMethod("setBarStyle:", Array(1)) Could anyone explain this or point me to some explanation Msny thanks Marc
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2019 #2 Please use [code]code here...[/code] tags when posting code. NativeObject, is the B4i version of JavaObject. It allows you to access native APIs that were not exposed through a library. The specific code you posted is similar to the Objective C code posted here: https://stackoverflow.com/a/23812061/971547 Upvote 0
Please use [code]code here...[/code] tags when posting code. NativeObject, is the B4i version of JavaObject. It allows you to access native APIs that were not exposed through a library. The specific code you posted is similar to the Objective C code posted here: https://stackoverflow.com/a/23812061/971547
M Marc Van Cauwenberghe Member Licensed User Longtime User Mar 10, 2019 #3 Thank you Erel. Thought as much. Fixed Code Insert. Is there a small tutorial with examples for the syntax. If not, no problem will figure it out myself. Many thanks. Upvote 0
Thank you Erel. Thought as much. Fixed Code Insert. Is there a small tutorial with examples for the syntax. If not, no problem will figure it out myself. Many thanks.