5/19/2023 0 Comments Controller mapper for iosDespite being a simple app, it lends itself very well to exposing the pitfalls of architecting iOS apps. The app itself will contain only two screens, one with the list of to-do items and one to add new items to the list. In this article, we’ll build a simple to-do list app that demonstrates how to correctly architect iOS apps. This happens so often that the joke is that MVC is short for “massive view controller.” In the long term, though, all of this code piles up and becomes hard to read, modify, reuse and test. Because view controllers in iOS carry many responsibilities and are closely related to the app screens, a lot of code ends up being written in them because it’s just easier and faster that way. If you’ve ever written an iOS app beyond a trivial “Hello world” app with just one screen and a few views, then you might have noticed that a lot of code seems to “naturally” go into view controllers. If you’ve ever written an iOS app beyond a trivial “Hello world” app with just one screen and a few views, then you might have noticed that a lot of code seems to “naturally” go into view controllers.īecause view controllers in iOS carry many responsibilities and are closely related to the app screens, a lot of code ends up being written in them because it’s just easier and faster that way.
0 Comments
Leave a Reply. |