vendredi 30 janvier 2015

Is it ok for a for a View to dismiss itself?


Currently, I'm working on a project in which a view is dismissing itself.


While talking to another programmer on the team for this project, he said that it's fine (in that it behaves correctly), but that I really should be using a delegate pattern to dismiss a view.


I've been programming in Objective-C for awhile now, but am still trying to fully understand design patterns, such as delegation. Is it acceptable for a view to dismiss itself, or should I in-fact be using delegation? When is delegation not an acceptable design pattern for use?


Thanks for your help! Apologies in advance if this question is a bit unclear.f





Aucun commentaire:

Enregistrer un commentaire