Latest | 1.0.1 |
---|---|
Homepage | https://github.com/esttorhe/ColorFromAddress |
License | MIT |
Platforms | ios , requires ARC |
Authors |
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
Latest podspec
{ "name": "ColorFromAddress", "version": "1.0.1", "summary": "UIView category that generates a UIColor based on the memory address of the view.", "description": " 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.nBelow a code sample:nn```nUIView *tmpVw = [[UIView alloc] initWithFrame:CGRectZero];ntmpVw.backgroundColor = [tmpVw colorFromMemory];n```nnThis was "inspired" by [this blog post]("http://blog.bignerdranch.com/879-peek-a-view/") from [Mark Dalrymple]("http://blog.bignerdranch.com/author/markd/").n", "homepage": "https://github.com/esttorhe/ColorFromAddress", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Esteban Torres": "[email protected]" }, "source": { "git": "https://github.com/esttorhe/ColorFromAddress.git", "tag": "1.0.1" }, "platforms": { "ios": null }, "source_files": "ColorFromAddress", "requires_arc": true }
Mon, 29 Feb 2016 07:15:03 +0000