Custom Controls

Reusability in iOS

  1. Generic: it does a simple, mostly atomic, operation – which can be perform by different objects.
  2. Self-explaining: the code should be intuitive to developer, anything that is not should be simplified, or explained by comments (avoid comments as much as possible)
  3. Independent: it should not depend on other classes to work, and should not hijack the behaviours of other classes