I will explain my question by way of example.
- I'm writing a iOS app, that have 4 type of users. For every type of users i need to show different controller, and sometimes the same controller but with some changes.
- It is possible to change role of user runtime. For switching between users i think to use Decorator pattern.
So what is the best solution to create (1) and (2) situations?
Aucun commentaire:
Enregistrer un commentaire