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

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

License

Notifications You must be signed in to change notification settings

esttorhe/ColorFromAddress

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published