iOS Question Button doesn't work with background imageview

Discussion in 'iOS Questions' started by Marco Maria Vilucchi, Jul 6, 2015.

  1. Marco Maria Vilucchi

    Marco Maria Vilucchi Active Member Licensed User

    Sorry, but i dont' kwo because it happens.
    i'm working with Designer
    in Page1 i have a panel ane an imageview for backgroud.
    Then i have a button (BTSelezionaReg with a background image)

    upload_2015-7-6_15-4-43.png
    upload_2015-7-6_15-10-21.png
    If i put this button in the imageview area it doesn't click.
    upload_2015-7-6_15-6-16.png

    if i put it otherwise it works
    upload_2015-7-6_15-7-26.png


    What should i do?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you post a small project that demonstrates the issue?
     
  3. Marco Maria Vilucchi

    Marco Maria Vilucchi Active Member Licensed User

    The button with Italy image (BTSelezionaReg) if moved at 30%y doesn't click
    Ths
    Marco
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    Please try to reproduce it in a small project with only the relevant layout file.
     
  5. Marco Maria Vilucchi

    Marco Maria Vilucchi Active Member Licensed User

    Try to touch Italy Button: doesn't work (no click)

    Move button to BTSelezionaReg.top=80%y : works

    Move button to BTSelezionaReg.top=60%y : works only touching sicily

    Ths
     

    Attached Files:

  6. JanPRO

    JanPRO Well-Known Member Licensed User

    Adding
    Code:
    BTSelezionaReg.BringToFront
    to your code works for me.
     
  7. Marco Maria Vilucchi

    Marco Maria Vilucchi Active Member Licensed User

    Ths!!!!
    It works!!
    In my version, loking for a solution I added:

    BTSelezionaReg.Initialize("BTSelezionaReg",BTSelezionaReg.STYLE_SYSTEM)
    BTSelezionaReg.bringtofront

    It was sufficient to delete the first statement and works
    Ths again
     
Loading...