开发者

Aren't MVC principals violated when one uses Interface Builder to create UITabControllers, UINavigationControllers, etc.?

开发者 https://www.devze.com 2023-02-16 13:33 出处:网络
See title. It feels dirty, but is this the recommended appr开发者_StackOverflow社区oach?I understand why you might feel this way, but don\'t confuse a xib with the view. The xib may contain your View,

See title. It feels dirty, but is this the recommended appr开发者_StackOverflow社区oach?


I understand why you might feel this way, but don't confuse a xib with the view. The xib may contain your View, but the xib itself isn't the view.


I personally don't use the interface builder, but as far as I am concerned it doesn't matter how you create the controller. I understand your point, but I wouldn't say that the interface builder's ability to create controllers violates the MVC pattern. It's still MVC, the only thing is that the controllers are created with a tool that you would expect to only create views with.

0

精彩评论

暂无评论...
验证码 换一张
取 消