iOS Question How make a link between 2 imageview on diferent pages?

salvadoro

Member
Licensed User
Longtime User
Let me tell my case:
I have two cells with one imageview and one button.
When i click in a button go to a page where i can select an image and close that page.

The image selected then always show in the last imageview of the customlistview.

How can i select the imageview where put the image?
 

salvadoro

Member
Licensed User
Longtime User
Thanks Erel but doesn't work

If i use

B4X:
For Each v As B4XView In clv1.GetPanel(1).GetAllViewsRecursive

I get this

<B4XViewWrapper: <B4IPanelView: 0x10385a650; frame = (0 0; 375 134.612); clipsToBounds = YES; layer = <CALayer: 0x2820189e0>>>
<B4XViewWrapper: <UIImageView: 0x10385b2e0; frame = (35.8966 35.8966; 267.31 89.7416); clipsToBounds = YES; userInteractionEnabled = NO; layer = <CALayer: 0x282018ae0>>>
<B4XViewWrapper: <UILabel: 0x10385b510; frame = (35.8966 4.48708; 330.129 26.9225); text = 'Salesman'; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x28033db80>>>

So with this code

B4X:
clv1.GetPanel(1).GetView(1)

I get this error

Error occurred on line: 146 (CustomListView)
*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]
 
Upvote 0
Top