What are common design patterns in Cocoa Touch?
In Java community, design pattern is very common term.
In Object C and Cocoa touch world, there are also some design patterns, such as MVC, target-action, delegate, KVO etc.
The purpose question here is to hear more professional experience from guru. After all, some patterns are common used in iOS development. Just like some are very common in J2EE world.
So question maybe how many common patterns in iOS development field ? Let me put some here
- MVC
- delegate, target-action ( communication between V and C )
- KVC KVO Notification ( comm between M and C )
- Singleton 开发者_C百科 .... ....
The Cocoa Fundamentals Guide has a section on a some design patterns: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html%23//apple_ref/doc/uid/TP40002974-CH6-SW6
I don't believe you need access to the Apple Dev Center to view that, but I could be wrong.
An exaustive document for this is available at:
https://developer.apple.com/library/ios/DOCUMENTATION/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html
the retired document can be found at https://developer.apple.com/legacy/library/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html
精彩评论