iOS Question Question

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

  1. tufanv

    tufanv Expert Licensed User

    Hello

    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
    Next
    "

    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.

    TY
     
    Last edited: Jul 2, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    For Each iv As ImageView In Page1.RootPanel

    Next
    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.
     
Loading...