iOS Question View sizes

Discussion in 'iOS Questions' started by Adilson Jacinto, Sep 8, 2015.

  1. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    Hi there,

    How can I make sure a view control does go over the others?
    What I mean is lets say we have a text field at the top, then I want to place a tableview below that textview but I want the table to be 100% height but I don't want it to go over the textfield I want it to keep below the textfield.
    Any Ideas?

    Thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Use the designer to create this layout and put the TableView under the TextField. The TableView should be vertically anchored to BOTH.
     
  3. narek adonts

    narek adonts Well-Known Member Licensed User

    Or TextField.BringToFront
     
  4. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    How can I put the Tableview under TextField ins designer mode where I don't have the view Tableview in the menu???
     
  5. narek adonts

    narek adonts Well-Known Member Licensed User

    do it by code

    TextField.BringToFront
     
  6. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    I have done that but the Textview stays over the Tableview :(
     
  7. narek adonts

    narek adonts Well-Known Member Licensed User

    But in the first post you told that you want that the textfield be on the top of the tableview?
     
  8. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    No What I meant was I wnat the Textfield always to stay above the TablelView and I want the Tableview to be always 100% height but below Textfield, does it make sense?
     
  9. narek adonts

    narek adonts Well-Known Member Licensed User

    yes. add the tableview and after the texfield so the textfield will be above
     
  10. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    How I can add the Tablelview below in designer mode?
     
  11. narek adonts

    narek adonts Well-Known Member Licensed User

    You should add tableview by code. After adding tableview to a panel call textfield.bringtofront
     
    Adilson Jacinto likes this.
  12. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    ok thanks I will try that later, as I haven't got my device in front of me to test it... by the way I know it is possible to run a iphone emulator on windows?
     
  13. narek adonts

    narek adonts Well-Known Member Licensed User

    if you are using a local mac builder then yes
     
  14. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    How can I set this up?
     
  15. narek adonts

    narek adonts Well-Known Member Licensed User

    just connect to your local builder as you are doing and when choosing device IP within b4i IDE choose simulator
     
    Adilson Jacinto likes this.
  16. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    Thanks
     
  17. Adilson Jacinto

    Adilson Jacinto Active Member Licensed User

    Hi @narek adonts I tried that but as I said what happens is the TextField come over the TablewView and I wanted the TextField to push the TableView down like "padding bottom" in html to have space between them. This is the code at the moment
    Code:
    TableView.Initialize("TableView"False)
            Page1.RootPanel.AddView(
    TableView 00100%x100%y)

            
    TextField.BringToFront
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice