iOS Question Screen Resize/Rotation Scrolling

Discussion in 'iOS Questions' started by MotoMusher, Feb 16, 2015.

  1. MotoMusher

    MotoMusher Active Member Licensed User

    Just getting started here on B4i after using B4A for a few years. I did read the beginners guide (thank you) and can't figure this out. I'm sure it's something dumb on my part.

    I have a simple test app with a label at the top and a button at the bottom of the the screen in portrait. Both have a parent of a panel which is 500 high. When the screen is rotated to landscape, the bottom button falls off the screen, which I expect, but I can't scroll down to it.

    In B4A, I do 90%+ of my layouts in code. In this case, I would create a scrollview, and add the views to the scrollview. B4i Beginners guide states:
    "Note that you should avoid adding views in code but use the Designer with Designer Scripts."

    So, I'm trying to go back to learning the designer.

    Any suggestions, or pointers where this has already been covered, appreciated.
     
  2. klaus

    klaus Expert Licensed User

    You can still add views by code in B4i.
    You can define the ScrollView in the Designer, define a Panel with the views in the Designer but you need to add the Panel to the ScrollView.Panel in the code.
    Be aware that the B4i ScrollView can scroll in both directions like ScrollView2D in B4A.
     
    MotoMusher likes this.
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