Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Views and reusability #5

Open
alexito4 opened this issue Aug 27, 2014 · 1 comment
Open

[Question] Views and reusability #5

alexito4 opened this issue Aug 27, 2014 · 1 comment

Comments

@alexito4
Copy link

I really like what this (and other similar) architecture offers but I’m wondering about the reusability of the views and the role of the view controllers.
In the majority of the occasions I create custom views and then compose them all in the viewController creating the screen that I want.
I would like to see how this is approached in this architecture since I see that the VC/Views are really tied and only can represent one screen.
For example how you would handle if we want to use the “Add” view in another place? For example if we want to use the add as a view on top of the table.
Thank you!

@scottrhoyt
Copy link

I think subclassing is the right answer for you. Create a "Add" viewcontroller superclass that you inherit from in all the cases you need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants