iOS Question Question

Discussion in 'iOS Questions' started by tufanv, Jul 2, 2015.

  1. tufanv

    tufanv Expert Licensed User


    in b4a forum cableguy helped about a issue:

    "The only way to do it is to add them in the designer and then "duplicate" them in an array.

    Dim imgarray(15)
    Dim i as int = 0
    for each v as imageview in activity
    Imgarray(i) = v
    i = i + 1

    it is his response. my question is in b4i there is no activity so what mut i replace the activity with ? I tried page1 but no luck.

    Last edited: Jul 2, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    For Each iv As ImageView In Page1.RootPanel

    This code (and the code you posted) will only work if there are no other views in the activity. You should instead add all the image views to a panel and iterate over the panel views.
  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