{"id":254970,"date":"2015-04-10T16:38:02","date_gmt":"2015-04-10T12:38:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=254970"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=254970","title":{"rendered":"\u0421\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f iOS-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u043a\u0430\u043a \u043c\u044b \u043d\u0430\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u043c \u0448\u0440\u0438\u0444\u0442\u044b, \u0446\u0432\u0435\u0442\u0430 \u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f"},"content":{"rendered":"<p>     \t<a href=\"http:\/\/habrahabr.ru\/company\/redmadrobot\/blog\/255381\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"400\" src=\"\/\/habrastorage.org\/files\/548\/fc4\/21a\/548fc421a55e4be3b7531ebf2e3f5515.png\"\/><\/div>\n<p><\/a><\/p>\n<p>  \u0412 \u0445\u043e\u0434\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u043e\u0442 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u043e\u0432 \u043c\u0430\u043a\u0435\u0442\u044b, \u0448\u0440\u0438\u0444\u0442\u044b \u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u0432 \u043a\u043e\u0434 \u2014 \u043d\u0443\u0434\u043d\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435, \u0434\u0430 \u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0440\u043e\u0432\u0438\u0442 \u0438\u0437\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0447\u0438\u0441\u0442\u044b\u043c\u0438, \u043c\u044b \u043f\u0440\u0438\u043d\u044f\u043b\u0438 \u0435\u0434\u0438\u043d\u0443\u044e \u043a\u043e\u043d\u0432\u0435\u043d\u0446\u0438\u044e \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4><b>\u0426\u0432\u0435\u0442\u043e\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430<\/b><\/h4>\n<p>  <a href=\"\/\/habrastorage.org\/files\/61a\/4f7\/24d\/61a4f724d3014897ad67564b1c060640.png\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" width=\"800\"  src=\"\/\/habrastorage.org\/files\/61a\/4f7\/24d\/61a4f724d3014897ad67564b1c060640.png\"\/><\/div>\n<p><\/a><\/p>\n<p>  \u042d\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442 \u043d\u0430 \u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e. \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0446\u0432\u0435\u0442\u043e\u0432 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438 \u0438 \u0442\u0430\u043a \u0436\u0435 \u043b\u0435\u0433\u043a\u043e \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e UIColor.<br \/>  \u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b #COLOR \u2014 TITLE. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0435\u0440\u0435\u0434 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0435\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u0441 \u043a\u043e\u0434\u043e\u043c \u0438 \u043f\u0430\u043b\u0438\u0442\u0440\u043e\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 CLR. \u0422\u0430\u043a\u0443\u044e \u043f\u0430\u043b\u0438\u0442\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 Interface Builder. <\/p>\n<pre><code>#B3ED3B green #5ABBF2 blue #FD86C9 pink #FD4737 red #FEAE30 orange <\/code><\/pre>\n<p>  <a href=\"\/\/habrastorage.org\/files\/9b8\/111\/aff\/9b8111affd2c4501b0a4e3946dba42b0.png\"><img decoding=\"async\" width=\"640\" src=\"\/\/habrastorage.org\/files\/9b8\/111\/aff\/9b8111affd2c4501b0a4e3946dba42b0.png\"\/><\/a><a href=\"\/\/habrastorage.org\/files\/abb\/f25\/30a\/abbf2530a7e3461982c4264ffba4985a.png\"><img decoding=\"async\" width=\"265\" src=\"\/\/habrastorage.org\/files\/abb\/f25\/30a\/abbf2530a7e3461982c4264ffba4985a.png\"\/><\/a><\/p>\n<h4><b>\u041d\u044e\u0430\u043d\u0441\u044b<\/b><\/h4>\n<p>  \u0412 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0430\u043b\u0438\u0442\u0440\u044b \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c. <\/p>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0430\u043d\u0435\u043b\u044c Colors \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0430\u043b\u0438\u0442\u0440, \u043a\u0430\u043a \u0438 \u0438\u0445 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435. \u041a\u0430\u0436\u0434\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 OS X \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0441\u0432\u043e\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 Colors, \u0438 \u0447\u0442\u043e\u0431\u044b \u0432\u043d\u043e\u0432\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u043f\u0430\u043b\u0438\u0442\u0440\u0430 \u0431\u044b\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. <br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f Xcode, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u0438\u043b\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0435\u0440\u0433\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0430\u043b\u0438\u0442\u0440\u044b \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Colors.<\/p>\n<p>  \u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0438\u0437 \u0444\u043e\u0440\u043c\u0430\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c Interface Builder \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0446\u0432\u0435\u0442:<\/p>\n<pre><code>&lt;color key=&quot;textColor&quot; red=&quot;0.29803922772407532&quot; green=&quot;0.85098040103912354&quot; blue=&quot;0.39215686917304993&quot; alpha=&quot;1&quot; colorSpace=&quot;deviceRGB&quot;\/&gt; <\/code><\/pre>\n<p>  \u0413\u043e\u043b\u044b\u0435 \u0446\u0438\u0444\u0440\u044b, \u0438 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043d\u0430\u043c\u0451\u043a\u0430 \u043d\u0430 \u043f\u0430\u043b\u0438\u0442\u0440\u0443 \u2014 \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0435\u0441\u043b\u0438 \u043c\u044b \u0435\u0451 \u043e\u0431\u043d\u043e\u0432\u0438\u043c, \u0432 xib\/storyboard \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043f\u043e-\u0441\u0442\u0430\u0440\u043e\u043c\u0443. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0430\u043c \u0440\u0435\u0448\u0438\u0442\u044c \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u043d\u043e \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0434\u0432\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u0430:<\/p>\n<ol>\n<li><b>\u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u043b\u0438\u0442\u0440\u044b.<\/b> \u041d\u0430 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0448\u0438\u0432\u0430\u0442\u044c Outlet\u2019\u044b \u0438 \u043a\u0440\u0430\u0441\u0438\u0442\u044c \u043a\u043e\u0434\u043e\u043c. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 Interface Builder \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0435\u0439 IBDesignable.<\/li>\n<li><b>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u043b\u043e\u0431.<\/b> \u0415\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0446\u0432\u0435\u0442, \u043f\u0440\u043e\u0431\u0435\u0433\u0430\u0442\u044c\u0441\u044f \u043f\u043e xml, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u043c xib \u0438\u043b\u0438 storyboard, \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0446\u0432\u0435\u0442. \u041a\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/github.com\/ramonpoca\/ColorTools\/blob\/master\/xibcolor\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041d\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u0437\u044f\u0449\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/li>\n<\/ol>\n<p>  \u041d\u0430\u0448\u0443 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 UIColor \u0438 \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0430\u043b\u0438\u0442\u0440 \u043f\u0430\u043d\u0435\u043b\u0438 Colors \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 GitHub \u2014 <a href=\"https:\/\/github.com\/RedMadRobot\/RMRColorTools-iOS\">RMRColorTools-iOS<\/a>.<\/p>\n<p>  \u0421 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c \u0432\u0441\u0451 \u043f\u0440\u043e\u0441\u0442\u043e. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u043b\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u0440\u0433\u0435\u0442 RMRRefreshColorPanelPlugin, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Xcode.<\/p>\n<p>  \u0414\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 UIColor \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0431\u0438\u043b\u0434\u0435 \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Build Phases \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 Run Script Phase \u0441 \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u044b RMRHexColorGen.<br \/>  <a href=\"\/\/habrastorage.org\/files\/9c6\/1a6\/d91\/9c61a6d91266442abbad2241f5080898.png\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"640\" src=\"\/\/habrastorage.org\/files\/9c6\/1a6\/d91\/9c61a6d91266442abbad2241f5080898.png\"\/><\/div>\n<p><\/a><br \/>  <a href=\"\/\/habrastorage.org\/files\/ab7\/0f4\/a08\/ab70f4a08e214ddc8e6dc79bb4827992.png\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"640\" src=\"\/\/habrastorage.org\/files\/ab7\/0f4\/a08\/ab70f4a08e214ddc8e6dc79bb4827992.png\"\/><\/div>\n<p><\/a><br \/>  <a href=\"\/\/habrastorage.org\/files\/b98\/f9f\/6e2\/b98f9f6e2f5d4ebd8f13681ac4a6b01c.png\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"640\" src=\"\/\/habrastorage.org\/files\/b98\/f9f\/6e2\/b98f9f6e2f5d4ebd8f13681ac4a6b01c.png\"\/><\/div>\n<p><\/a><br \/>  <a href=\"\/\/habrastorage.org\/files\/f0f\/a0d\/862\/f0fa0d862e874c4c9236b27a343e74fa.png\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"640\" src=\"\/\/habrastorage.org\/files\/f0f\/a0d\/862\/f0fa0d862e874c4c9236b27a343e74fa.png\"\/><\/div>\n<p><\/a><\/p>\n<h4><b>\u0428\u0440\u0438\u0444\u0442\u044b<\/b><\/h4>\n<p>  <a href=\"\/\/habrastorage.org\/files\/708\/6ec\/c18\/7086ecc18c6d4b74b44f67a316df90e9.png\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"800\" src=\"\/\/habrastorage.org\/files\/708\/6ec\/c18\/7086ecc18c6d4b74b44f67a316df90e9.png\"\/><\/div>\n<p><\/a><\/p>\n<p>  \u041c\u044b \u0445\u043e\u0442\u0435\u043b\u0438, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u0430 \u043e\u0434\u043d\u0430 \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u0442\u0438\u043b\u0435\u0439 \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e UIFont:<\/p>\n<pre><code>@implementation UIFont (RMRFonts)  + (UIFont *)rmr_regularFontOfSize:(CGFloat)size { \u00a0\u00a0\u00a0return [UIFont fontWithName:@&quot;HelveticaNeue&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0size:size]; }  + (UIFont *)rmr_mediumFontOfSize:(CGFloat)size { \u00a0\u00a0\u00a0return [UIFont fontWithName:@&quot;HelveticaNeue-Medium&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0size:size]; }  #pragma mark - Style fonts  + (UIFont *)rmr_fontA1 { return [self rmr_mediumFontOfSize:17.f]; }  + (UIFont *)rmr_fontA2 { return [self rmr_regularFontOfSize:17.f]; }  + (UIFont *)rmr_fontB1 { return [self rmr_regularFontOfSize:14.f]; }  + (UIFont *)rmr_fontB2 { return [self rmr_regularFontOfSize:11.f]; }  + (UIFont *)rmr_fontB3 { return [self rmr_mediumFontOfSize:10.f]; }  @end <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 label outlet \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0448\u0440\u0438\u0444\u0442\u0430 \u2014 \u0434\u0430\u0436\u0435 \u0437\u0432\u0443\u0447\u0438\u0442 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u0430\u0431\u043a\u043b\u0430\u0441\u0441 UILabel \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0441\u0442\u0438\u043b\u044f \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0421\u0442\u0438\u043b\u044c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u0441\u0430\u0431\u043a\u043b\u0430\u0441\u0441\u0435.<\/p>\n<pre><code>@implementation RMRLabel  - (void)prepareAppearance { \u00a0\u00a0\u00a0\/\/ \u0410\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430\u043c\u0438 }  - (instancetype)initWithFrame:(CGRect)frame { \u00a0\u00a0\u00a0if (self = [super initWithFrame:frame]) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0[self prepareAppearance]; \u00a0\u00a0\u00a0}  \u00a0\u00a0\u00a0return self; }  - (void)awakeFromNib { \u00a0\u00a0\u00a0[self prepareAppearance]; }  @end  @implementation RMRLabelA1  - (void)prepareAppearance { self.font = [UIFont rmr_fontA1]; }  @end <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c, \u0437\u0430\u0434\u0430\u0432\u0430\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0441\u0430\u0431\u043a\u043b\u0430\u0441\u0441 UILabel \u0432 Interface Builder.<\/p>\n<p>  \u041f\u0440\u043e\u0444\u0438\u0442 \u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u044b (Font \u21e2 UlLabel \u21e2 IB) \u2014 \u0435\u0441\u043b\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0438\u043b\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c, \u0442\u043e \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<h4><b>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/b><\/h4>\n<p>  \u0412 Xcode 6 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 pdf. \u0412\u043a\u0443\u043f\u0435 \u0441 tint color \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u0430\u043a \u0448\u0430\u0431\u043b\u043e\u043d \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0431\u044b\u0442\u044c \u043e \u0442\u0430\u043d\u0446\u0430\u0445 \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438, \u0435\u0441\u043b\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u043d\u0430 \u043f\u043e\u043b\u0442\u043e\u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0446\u0432\u0435\u0442 \u0438\u043a\u043e\u043d\u043e\u043a.<\/p>\n<p>  <a href=\"\/\/habrastorage.org\/files\/f11\/c41\/908\/f11c419086e1468a8b2cedbef6b1917f.png\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"400\" src=\"\/\/habrastorage.org\/files\/f11\/c41\/908\/f11c419086e1468a8b2cedbef6b1917f.png\"\/><\/div>\n<p><\/a><br \/>  <a href=\"\/\/habrastorage.org\/files\/b09\/b58\/c56\/b09b58c56b6049979ff04aeb4a1aaa5b.png\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"640\" src=\"\/\/habrastorage.org\/files\/b09\/b58\/c56\/b09b58c56b6049979ff04aeb4a1aaa5b.png\"\/><\/div>\n<p><\/a><\/p>\n<h4><b>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/b><\/h4>\n<p>  \u0426\u0432\u0435\u0442\u0430 \u0441\u043a\u043e\u0434\u043e\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u0448\u0440\u0438\u0444\u0442\u044b \u0437\u0430\u0441\u0430\u0431\u043a\u043b\u0430\u0441\u0441\u0438\u043b\u0438, \u0438\u043a\u043e\u043d\u043a\u0438 \u043f\u0435\u0440\u0435\u043a\u0440\u0430\u0441\u0438\u043b\u0438. \u042d\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0438 \u043d\u0430\u043c \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430\u043c\u0438 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0442\u0430\u043a\u0436\u0435<\/b><\/p>\n<div class=\"spoiler_text\"><a href=\"http:\/\/habrahabr.ru\/company\/redmadrobot\/blog\/251337\/\">\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0434\u0438\u0437\u0430\u0439\u043d \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u0447\u0430\u0441\u0442\u044c 2<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/company\/redmadrobot\/blog\/246551\/\">\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043d\u044b\u0439 \u0434\u0438\u0437\u0430\u0439\u043d \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439: \u0447\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/company\/redmadrobot\/blog\/243075\/\">\u0427\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0449\u0435 \u043a\u043d\u043e\u043f\u043a\u0438?<\/a>  <\/div>\n<\/div>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/255381\/\"> http:\/\/habrahabr.ru\/post\/255381\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<a href=\"http:\/\/habrahabr.ru\/company\/redmadrobot\/blog\/255381\/\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  width=\"400\" src=\"\/\/habrastorage.org\/files\/548\/fc4\/21a\/548fc421a55e4be3b7531ebf2e3f5515.png\"\/><\/div>\n<p><\/a><\/p>\n<p>  \u0412 \u0445\u043e\u0434\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u043e\u0442 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u043e\u0432 \u043c\u0430\u043a\u0435\u0442\u044b, \u0448\u0440\u0438\u0444\u0442\u044b \u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u0432 \u043a\u043e\u0434 \u2014 \u043d\u0443\u0434\u043d\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435, \u0434\u0430 \u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0440\u043e\u0432\u0438\u0442 \u0438\u0437\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0447\u0438\u0441\u0442\u044b\u043c\u0438, \u043c\u044b \u043f\u0440\u0438\u043d\u044f\u043b\u0438 \u0435\u0434\u0438\u043d\u0443\u044e \u043a\u043e\u043d\u0432\u0435\u043d\u0446\u0438\u044e \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-254970","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=254970"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254970\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}