iOS:iPhone 开发人员:MVC 在哪里以及委托类的用途是什么?
我一直在阅读有关 iOS 开发的文章。但我在iOS开发中仍然无法获取MVC框架。我确实知道cakephp中的MVC,但是cocoa中的MVC在哪里?这是我的猜测:
- 模型 =>类,比如核心数据?
- 查看=> nib/xib 文件
- 控制器 =>查看控制器文件?
我没有得到委托类,这些类有什么用?你能提供一些例子吗?
I have been reading articles about iOS development. But I still cannot get the MVC framework in iOS development. I do know the MVC in cakephp, but where are the MVC in cocoa? Here are my guess:
- Model => classes, like core data?
- View => nib/xib files
- Controller => view controller files?
And I dont get the delegate classes, what are these classes for? Can you provide some examples?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议在 iTunesU 上观看一些斯坦福 iOS 开发课程视频。对我帮助很大。这位讲师非常详细地准确解释了您所要求的内容。
http://itunes.apple.com/us /itunes-u/development-apps-for-ios-sd/id395631522
祝你好运。
I would suggest watching some of the Stanford iOS Development course videos on iTunesU. Helped me a ton. This instructor explains exactly what you are asking in great detail.
http://itunes.apple.com/us/itunes-u/developing-apps-for-ios-sd/id395631522
Good luck.
我开始观看斯坦福 iOS 视频,我也有同样的疑问。我在堆栈溢出中发现了一个类似的问题,并且有一个很好的答案可以帮助您理解。
委托类似于 mvc 控制器吗?
https://stackoverflow.com/a/8507588/968144
I started to watch Stanford iOS videos and I had the same doubt. I found a similar question here at stack overflow and a great answer which can help you urderstand.
Is a delegate analogous to a mvc controller?
https://stackoverflow.com/a/8507588/968144