iOS Question Problem getting height of NavigationBar ?

henrywood

Active Member
Licensed User
Longtime User
I am trying to get the height of the NavigationBar (don't want to hardcode any values).
I've tried:

B4X:
  Dim NativeMe2 As NativeObject = Main.NavControl
  ' self.navigationController.navigationBar.frame.size.height;
  Dim NativeMe3 As NativeObject = NativeMe2.GetField("navigationBar").GetField("frame").GetField("size").GetField("height")
  Dim h As Object = NativeMe3.AsNumber

I am getting this error:


Any ideas what's wrong ?


/Henrik
 

henrywood

Active Member
Licensed User
Longtime User
Well the code is in a shared, reusable code module so all code related to the functionality of the shared module should be contained within it.
But did you mean to say that you can have multiple Page_Resized Handlers in multiple code modules ?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…