ColorFromAddress

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


License
MIT
Install
pod try ColorFromAddress

Documentation

ColorFromAddress

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.

Contact

Twitter: @esttorhe