CategorySliderView icon indicating copy to clipboard operation
CategorySliderView copied to clipboard

Updating Buttons

Open AlexanderNorway opened this issue 11 years ago • 2 comments

If the user needs updated buttons showing x followers each time the user enters his/hers profile and that x value is fetched async from the web in viewWillAppear, how can you then update the button with the value x when the callback comes in? In other words, how can you update the buttons after they first have been laid out?

Thank you for your time Alexander

AlexanderNorway avatar Nov 11 '14 15:11 AlexanderNorway

slider items hold in @property (nonatomic, strong) NSMutableArray *categoryViews which is a private property in CategorySliderView.m file. you can make it public by cutting and pasting into .h file.

after that you can easily change the properties of items you wanted by getting them from categoryViews array.

cemolcay avatar Nov 11 '14 21:11 cemolcay

Thank you for the quick response! Will try it tomorrow.

AlexanderNorway avatar Nov 11 '14 23:11 AlexanderNorway