iOS Question topleftbutton problem

tufanv

Expert
Licensed User
Longtime User
Hello,

I set the top right button #1 via designer. It is a refresh button and displays well. I set the top left button with :

B4X:
    Dim btnleftlist As List
    btnleftlist.Initialize
    Dim btn As BarButton
    btn.Initializetext(Chr(0xE7FD),"cancel")
    btn.SetFont(Font.CreateMaterialIcons(22))
    
    btn.TintColor=Colors.White
    btnleftlist.Add(btn)
    Page1.TopLeftButtons=btnleftlist

this places the left button at very top. The right button and left button is not at the same top value, one stays higher one stays lower. Is there any way to change left button position a bit ? I want to place a member profile button to left but can't do it like this.

TY
 

tufanv

Expert
Licensed User
Longtime User
You can use CSBuilder with VerticalAlign attribute for this.
So should I use a label and add it to list and then set the topleftbutton to that list because as I know I cant use csbuilder for barbutton ?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
I can't use a label or clasical button as a topleftbutton because it says :
-[UILabel _setOwningNavigationItem:]: unrecognized selector sent to instance 0x10582d520

and barbutton does not have an attributedtext feature so I can set it to CS.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…