Another piece of advice please.
I am using a stepper to increment a quantity label.
In the OnItemStepperValueChanged event I am doing the following:
lbl:=TTMSFMXNativeUICollectionViewTemplateLabel(ShoppingList.GetItemTemplateControl(ASection,ARow,4));
lbl.Text:=IntToStr(Prod.Quantity);
But this isn't being displayed. If I do a ReloadItem it is fine but I would like to avoid doing this as I want to be able to keep my finger on the stepper so that it repeats but it crashes if I do so.
Thanks,
Ken
For performance reasons, we couldn't implement a direct update of the label, So ReloadItem will update the text, however as you are experiencing the stepper itself is also recreated / updated and looses the functionality of continuous value changing. You can overcome this by directly updating the text value of the underlying native control UILabel:
Pieter,
Fantastic. Just what I wanted, thanks.
Ken
Pieter,
I now want to replace the stepper with my own UIButtons and images but I can't find a way of setting the button to repeat click. I have tried btn.Button.setMultipleTouchEnabled(True) at the point it is created but that crashes.
Any help greatly appreciated.
Ken
Did you check if btn.Button is assigned? and did you apply this in the OnApplyItemValue?
Thanks Pieter. I have tried doing it in the OnApplyItemValue event , it doesn't crash but it has no effect.
Ken