iOS Question Logo on Navigation Bar

ciginfo

Well-Known Member
Licensed User
Longtime User
How can I add a logo on the center of navigation bar.?
I have added a button on the left and another on the right, but how to add a logo on the center?
Thank you
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
upload_2015-11-22_16-52-43.png


B4X:
Sub SetCenterLogo(Page As Page, bmp As Bitmap)
   Dim no As NativeObject = Page
   Dim iv As ImageView
   iv.Initialize("")
   iv.SetLayoutAnimated(0, 1, 0, 0, 30dip, 30dip)
   iv.Bitmap = bmp
   iv.ContentMode = iv.MODE_FIT
   no.GetField("navigationItem").SetField("titleView", iv)
End Sub
 
Upvote 0
Top