iOS Question Return ScrollView Current Page?

Mashiane

Expert
Licensed User
Longtime User

Mashiane

Expert
Licensed User
Longtime User
Not sure that I understand. Do you want to skip over some of the pages?
It's ok, I found it..

B4X:
Sub ScrollView1_ScrollChanged (OffsetX As Int, OffsetY As Int)
    For Each p As Panel In panels
        If p.Left = OffsetX Then
            noPageControl.SetField("currentPage", p.Tag)
            Log(p.Tag)
        End If
    Next
End Sub

I wanted to return the page, Log(p.Tag) here does it. Perfect!
 
Upvote 0
Top