i have uicollectionviewcontroller want take orders products. each custom collectionviewcell has uistepper take quantity each product user wishes order. every time value of stepper changes, price of product multiplied quantity , total product calculated.
how go passing information uicollectionviewcontroller each individual cell calculate overall total?
i updating controllers total
property cellforrowatindexpath
realised doesn't update every time stepper's value changed.
you should create protocol in custom cell, , assign view controller delegate. every time value changes in cell send message view controller, , view controller can update total accordingly.
Comments
Post a Comment