Carlos
Carlos

Reputation: 125

Switching Views using Xcode

Using Xcode do I need to create a new file for each view when it is connected to a button? Or does it work fine with just keeping the app under one h and m file?

Upvotes: 5

Views: 46

Answers (2)

raul
raul

Reputation: 401

Create a new file for each view. This will give you a new .h and .m file. Using MVC or single app view.

Upvotes: 3

Dyrborg
Dyrborg

Reputation: 877

iOS app development follow the model-view-control design pattern, and as such, you should always create a new control (.m and .h file) for each new view.

Upvotes: 1

Related Questions