Design patterns in iOS

in #vincentb6 years ago

In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations.

The design patterns can be broadly classified into 3 categories -

  1. Creational: Singleton.
  2. Structural: MVC, Decorator, Adapter, Facade.
  3. Behavioral: Observer, Memento

Of all the design patterns in iOS, MVC (Model-View-Controller) is considered to be of utmost importance.
To know more you can visit:-

  1. https://www.raywenderlich.com/160651/design-patterns-ios-using-swift-part-12
  2. https://www.raywenderlich.com/160653/design-patterns-ios-using-swift-part-22

This is my favourite blog. :)

Sort:  

Whenever you create a new project in Xcode; it's user interface provides you with MVC pattern. Though, we can create our own MVC pattern with in the source code, which makes the code much more readable and scalable.

I agree with you, raywendrlich is one of my favourite as well.

Coin Marketplace

STEEM 0.16
TRX 0.12
JST 0.028
BTC 54953.89
ETH 2913.89
USDT 1.00
SBD 2.03