Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Latest commit

 

History

History
17 lines (12 loc) · 705 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 705 Bytes

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