iOS third party (displays the width height of the View)-mmplaceholder
Last Update:2015-06-22
Source: Internet
Author: User
<span id="Label3"></p><p><p>Github:https://github.com/adad184/mmplaceholder#readme</p></p><p><p>Appdelegate added, affecting the global</p></p>[mmplaceholderconfig Defaultconfig].linecolor = [uicolor redcolor];<br>[mmplaceholderconfig Defaultconfig].linewidth =<span style="color: #800080;"><span style="color: #800080;">1</span></span>;<br>[mmplaceholderconfig defaultconfig].arrowsize =<span style="color: #800080;"><span style="color: #800080;">5</span></span>;<br>[mmplaceholderconfig Defaultconfig].backcolor = [uicolor clearcolor];<br>[mmplaceholderconfig Defaultconfig].framewidth =<span style="color: #800080;"><span style="color: #800080;">0</span></span>;<br>[mmplaceholderconfig defaultconfig].visiblekindofclasses = @[uiimageview.<span style="color: #0000FF;"><span style="color: #0000FF;">class</span></span>];<br><br><span style="color: #008000;"><span style="color: #008000;">//</span></span><span style="color: #008000;"><span style="color: #008000;">using it for frame debug [mmplaceholderconfig defaultconfig].autodisplay = YES;</span></span><span style="color: #008000;"><span style="color: #008000;"><br></span></span>[mmplaceholderconfig Defaultconfig].autodisplaysystemview = YES;<br>[mmplaceholderconfig Defaultconfig].showarrow = YES;<br>[mmplaceholderconfig Defaultconfig].showtext = YES;<br> <br><span style="color: #008000;"><span style="color: #008000;">//</span></span><span style="color: #008000;"><span style="color: #008000;">using it to control global visible [mmplaceholderconfig defaultconfig].visible = YES;</span></span><p><p>Added when used, affects individual</p></p>[iv2 showplaceholder];<br>[iv3 Showplaceholderwithlinecolor:[uicolor greencolor];<br>[iv4 Showplaceholderwithlinecolor:[uicolor yellowcolor] Backcolor:[uicolor colorwithred:<span style="color: #800080;"><span style="color: #800080;">0.1</span></span>Green<span style="color: #800080;"><span style="color: #800080;">0.1</span></span>Blue<span style="color: #800080;"><span style="color: #800080;">0.1</span></span>Alpha<span style="color: #800080;"><span style="color: #800080;">0.5</span></span>]];<br>[IV5 Showplaceholderwithlinecolor:[uicolor whitecolor] Backcolor:[uicolor colorwithred:<span style="color: #800080;"><span style="color: #800080;">1.0</span></span>Green<span style="color: #800080;"><span style="color: #800080;">0.5</span></span>Blue<span style="color: #800080;"><span style="color: #800080;">0</span></span>Alpha<span style="color: #800080;"><span style="color: #800080;">0.8</span></span>] Arrowsize:<span style="color: #800080;"><span style="color: #800080;"></span> a</span>];<br>[iv6 showplaceholderwithlinecolor:[uicolor whitecolor] backcolor:[uicolor blackcolor] arrowSize:<span style="color: #800080;"><span style="color: #800080;"></span> -</span>Linewidth:<span style="color: #800080;"><span style="color: #800080;">3</span></span>]<p><p>:</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p> iOS third party (displays the width height of the view)-mmplaceholder </p> </p></span>