iOS Question B4xDrawer change Bitmap

Claude Brun

Active Member
Licensed User
Longtime User
Hi,
I use B4Xdrawer and I arrive to change the color of BarButton with this code

Dim nx As NativeObject = NavControl
Dim no As NativeObject =App
nx.GetField("navigationBar").RunMethod("setTintColor:", Array(no.ColorToUIColor(c)))

I would like to change bitmap of the button (on for open, on for close) but I do not arrive to do this.
(initial load of bitmap is Ok)
Is it possible?

Thank
 

Semen Matusovskiy

Well-Known Member
Licensed User
BarButton supports InitializeBitmap method.
I added some statements to Erel's sample.
 

Attachments

  • test.zip
    42.2 KB · Views: 165
Last edited:
Upvote 0
Top