ColorFromAddress 1.0.1

ColorFromAddress 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Esteban Torres.



  • By
  • Esteban Torres

UIView category that generates a UIColor based on the memory address of the view.

Helps determine when views are being re-used and also to get an easy and quick way of knowing how views are laying out when doing UI via code. Below a code sample:

UIView *tmpVw = [[UIView alloc] initWithFrame:CGRectZero];
tmpVw.backgroundColor = [tmpVw colorFromMemory];

This was "inspired" by this blog post from Mark Dalrymple.