I have one label which is added on window. I have added a timer on my view class which updates the data by calling model method. Now if I move to another view controller my timer will do its work of updating data.
Now my question is what is the right way to update label text?
I can do it by using delegation pattern where my custom Label will be the delegate and model will be the delegator. Will it the right approach?
Aucun commentaire:
Enregistrer un commentaire