When i use a tableview (iUI8 library) and i put a customview with an designer layout into a tablecell with a button and textfield ... when i click on button use this code ...
if i use the tf (textfield) TAG property this is always null !
It's an lib bug or a my error ?
Thanks in advice !
Toni
B4X:
Sub btnClick_Click
Dim btn As Button = Sender
Dim no As NativeObject = btn
Dim Parent As Panel = no.GetField("superview") 'get the button's parent
Dim tf As TextField = Parent.GetView(1) 'this is the text field index (based on the order in the layout file).
Msgbox("Tag value of textfield: ", tf.tag)
End Sub
if i use the tf (textfield) TAG property this is always null !
It's an lib bug or a my error ?
Thanks in advice !
Toni