Sandman Expert Licensed User Longtime User Nov 5, 2018 #1 In B4A, it's possible to cast (almost) all views as a Label to get the tag, for instance. Doing so in B4I causes a crash. Can I cast iOS views to something else to easily get some common properties, such as the tag?
In B4A, it's possible to cast (almost) all views as a Label to get the tag, for instance. Doing so in B4I causes a crash. Can I cast iOS views to something else to easily get some common properties, such as the tag?
Erel B4X founder Staff member Licensed User Longtime User Nov 5, 2018 #2 You can cast all views in B4A and B4i to View. B4X: Dim v As View = Button12 Log(v.Tag) You can cast all views in B4A, B4i and B4J to B4XView: B4X: Dim x As B4XView = Button13 Log(x.Tag) B4XView is the best option. Upvote 0
You can cast all views in B4A and B4i to View. B4X: Dim v As View = Button12 Log(v.Tag) You can cast all views in B4A, B4i and B4J to B4XView: B4X: Dim x As B4XView = Button13 Log(x.Tag) B4XView is the best option.