{"id":192062,"date":"2013-08-31T08:44:02","date_gmt":"2013-08-31T04:44:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=192062"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=192062","title":{"rendered":"<span class=\"post_title\">\u0417\u0430\u043f\u0438\u0441\u043a\u0438 \u0424\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u0430: \u0414\u0435\u043b\u0438\u043c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c, \u0447\u0430\u0441\u0442\u044c 1<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/293\/27c\/15c\/29327c15ccddacde0b51d70a1bfa48e2.jpg\" alt=\"image\" align=\"right\"\/>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u0425\u0430\u0431\u0440\u0430!<\/p>\n<p>  \u042f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 iOS \u0438 Mac OS. \u0423\u0436\u0435 \u043e\u043a\u043e\u043b\u043e \u0433\u043e\u0434\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0444\u0440\u0438\u043b\u0430\u043d\u0441\u043e\u043c \u0438, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u043d\u0430\u0447\u0430\u043b \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u044c, \u0447\u0442\u043e \u0432 \u0437\u0430\u0434\u0430\u0447\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u043e\u0434\u0438\u043d\u043e\u0436\u0434\u044b; \u0430 \u043f\u0440\u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u0437\u0430\u043a\u0430\u0437\u0430, \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0443\u0436\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435 \u043c\u043e\u0434\u0443\u043b\u0438. \u0412 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u00ab\u0417\u0430\u043f\u0438\u0441\u043a\u0438 \u0424\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u0430\u00bb \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0432 \u0437\u0430\u043a\u0430\u0437\u0430\u0445 \u0430\u0441\u043f\u0435\u043a\u0442\u044b; \u043d\u0430\u043f\u0438\u0448\u0443 \u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0438, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e, \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437\u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u041c\u043e\u0438 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043d\u0438 \u0432 \u043a\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e\u0442 \u043d\u0430 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043b\u0435\u0433\u043a\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u0437\u0430\u043a\u0430\u0437 \u0432 \u0441\u0440\u043e\u043a.<\/p>\n<p>  \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:<\/p>\n<ol>\n<li><a href=\"http:\/\/habrahabr.ru\/topic\/add\/\">\u0427\u0430\u0441\u0442\u044c 1: \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0424\u0430\u0439\u043b\u0430\u043c\u0438; \u0428\u0430\u0431\u043b\u043e\u043d Singleton; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0410\u0443\u0434\u0438\u043e; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0412\u0438\u0434\u0435\u043e; In-App Purchases<\/a><\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 2: \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430 (Popups); \u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Modal Segue \u0432 Navigation Controller; Core Graphics; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 UIWebView \u0438 ScrollView<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 3: \u0416\u0438\u0437\u043d\u044c \u0431\u0435\u0437 Autolayout; Splash Screen; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u0432 iOS 6+; \u0421\u0434\u0432\u0438\u0433 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e UITextField<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 4: Google Analytics; Push Notifications; PSPDFKit; \u0412\u0445\u043e\u0434 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Facebook; \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0437\u044c\u044f\u043c \u2014 Facebook, Twitter, Email<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 5: Core Data; UITableView \u0438 UICollectionView<\/li>\n<\/ol>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0424\u0430\u0439\u043b\u0430\u043c\u0438<\/h4>\n<p>  \u041c\u043d\u043e\u0433\u0438\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435 iOS \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043d\u0430\u0442\u044b\u043a\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443: \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435, \u043d\u043e \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435. \u041e\u0434\u043d\u0430 \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u043d\u0435\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0435\u043d\u043d\u044b\u0435 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 Apple \u0442\u0430\u043a\u043e\u0432\u0430: \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u043b\u0435\u0447\u044c\u0441\u044f \u2014 \u044d\u0442\u043e \u043f\u0430\u043f\u043a\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u0427\u0438\u0442\u0430\u0442\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0442\u043e\u0432\u0441\u044e\u0434\u0443 (\u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f), \u0430 \u0432\u043e\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0430\u043f\u043a\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<br \/>  \u0417\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435, \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432! \u0417\u0430\u043f\u0440\u043e\u0441\u0442\u043e! \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 <i>Config.h<\/i>, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 <i>Your_App_Name-Prefix.pch<\/i> (\u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0432\u043e \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430):<\/p>\n<pre><code class=\"objectivec\">#import &quot;Config.h&quot; <\/code><\/pre>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432 <i>Config.h<\/i>, \u0435\u0441\u0442\u044c \u0438 \u0432\u043e \u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435! \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b:<\/p>\n<pre><code class=\"objectivec\">#define pathToApplicationDirectory [[NSBundle mainBundle] bundlePath] \/\/ \u041f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f #define pathToDocuments [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject] \/\/ \u041f\u0443\u0442\u044c \u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c  #define pathToSettings [[pathToDocuments URLByAppendingPathComponent:@&quot;settings.plist&quot;] path] \/\/ \u041f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a #define pathToPopups [[NSBundle mainBundle] pathForResource:@&quot;popups&quot; ofType:@&quot;plist&quot;] \/\/ \u041f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0441\u043e \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u043a\u043d\u0430\u043c\u0438 <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441 \u0432\u0430\u043c\u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c (\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043c\u043d\u043e\u0433\u043e \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u0431\u044b \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u043a).<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0424\u0430\u0439\u043b\u044b <i>settings.plist<\/i> \u0438 <i>popups.plist<\/i> \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0447\u0430\u0441\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0443\u043d\u043a\u0442 \u0441 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0432 \u043d\u0430\u0448 <i>application: didFinishLaunchingWithOptions:<\/i><\/p>\n<pre><code class=\"objectivec\">\/\/ \u042f \u044e\u0437\u0435\u0440, \u0430 \u043d\u0435 \u043b\u0443\u0437\u0435\u0440, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0443 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c! [self placeResourcesToDocumentsDirectory:@{      @&quot;settings&quot; : @&quot;plist&quot;,      @&quot;popups&quot; : @&quot;plist&quot;}]; <\/code><\/pre>\n<p>  \u0418, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0441\u0430\u043c \u043c\u0435\u0442\u043e\u0434 <i>placeResourcesToDocumentsDirectory:<\/i><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">\/*!  \u041c\u0435\u0442\u043e\u0434, \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438  \/param \u0421\u043b\u043e\u0432\u0430\u0440\u044c \u0441 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u0444\u0430\u0439\u043b\u043e\u0432   *\/ - (void)placeResourcesToDocumentsDirectory:(NSDictionary *)resources {     \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043e\u0434\u0438\u043d \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432, \u0432\u0434\u0440\u0443\u0433 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043e \u0443\u0436\u0435     if (![[NSFileManager defaultManager] fileExistsAtPath:pathToSettings) {                  for (NSString *fileName in [resources allKeys]) {             NSString *extension = resources[fileName];                          NSURL *storeURL = [pathToDocuments URLByAppendingPathComponent:[NSString stringWithFormat:@&quot;%@.%@&quot;, fileName, extension]];             NSURL *preloadURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:fileName ofType:extension]];             NSError *error = nil;             [[NSFileManager defaultManager] copyItemAtURL:preloadURL toURL:storeURL error:&error];         }     } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435! \u041a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438? \u0410 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u0443 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"objectivec\">NSMutableDictionary *settings = [NSMutableDictionary dictionaryWithContentsOfFile:pathToSettings]; settings[@&quot;isThisAppCool&quot;] = @YES; [settings writeToFile:pathToSettings atomically:YES]; <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0428\u0430\u0431\u043b\u043e\u043d Singleton<\/h4>\n<p>  \u042d\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043d\u0438\u043f\u043f\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u0432\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0430\u043c\u0438.<br \/>  <i>Singleton.h<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">&lt;...&gt; \/\/ \u0423\u043f\u0440\u043e\u0441\u0442\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d\u0443 #define coolSingleton [Singleton sharedSingleton]  @interface Singleton : NSObject + (Singleton *)sharedSingleton; &lt;...&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <i>Singleton.m<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">&lt;...&gt; @implementation Singleton  static Singleton *sharedSingleton;  + (Singleton *)sharedSingleton {     if (sharedSingleton == nil) {         sharedSingleton = [[Singleton alloc] init];     }     return sharedSingleton; } &lt;...&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043c\u044b \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u0438 \u043e\u0434\u043d\u043e\u0439 \u0434\u0435\u0444\u0438\u043d\u0438\u0446\u0438\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d\u043e\u043c. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 Singleton. \u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u043f\u043e \u0432\u044b\u0437\u043e\u0432\u0443 \u043c\u0435\u0442\u043e\u0434\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 <i>sharedSingleton<\/i> \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043b\u0438\u0431\u043e \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043e\u0431\u044a\u0435\u043a\u0442, \u043b\u0438\u0431\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439. \u0412\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 Singleton.<\/p>\n<h4>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0410\u0443\u0434\u0438\u043e<\/h4>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c AVAudioPlayer \u0438\u0437 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 AVFoundation. \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u043e\u0441\u0442: \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 AVAudioPlayer \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044e \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0430\u0443\u0434\u0438\u043e\u043f\u043b\u0435\u0435\u0440\u044b. \u0423 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0434\u0432\u0430 \u0430\u0443\u0434\u0438\u043e\u043f\u043b\u0435\u0435\u0440\u0430: \u043e\u0434\u0438\u043d \u0434\u043b\u044f \u0444\u043e\u043d\u043e\u0432\u043e\u0439 \u043c\u0443\u0437\u044b\u043a\u0438, \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0437\u0432\u0443\u043a\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438.<\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 <i>SimpleAudioPlayer.h<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">#import &lt;Foundation\/Foundation.h&gt; #import &lt;AVFoundation\/AVFoundation.h&gt;  #define audioPlayer [SimpleAudioPlayer sharedAudioPlayer]  @interface SimpleAudioPlayer : NSObject @property (nonatomic, retain) AVAudioPlayer *backgroundMusicPlayer; @property (nonatomic, retain) AVAudioPlayer *buttonSoundPlayer;  + (SimpleAudioPlayer *)sharedAudioPlayer;  @end <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0418 \u043d\u0430 <i>SimpleAudioPlayer.m<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">#import &quot;SimpleAudioPlayer.h&quot;  @implementation SimpleAudioPlayer  static SimpleAudioPlayer *sharedAudioPlayer;  + (SimpleAudioPlayer *)sharedAudioPlayer {     if (sharedAudioPlayer == nil) {         sharedAudioPlayer = [[SimpleAudioPlayer alloc] init];     }     return sharedAudioPlayer; }  - (id)init {     self = [super init];     if (self) {         [self initAudioPlayers];     }     return self; }  \/*!   \u041c\u0435\u0442\u043e\u0434, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0430\u0443\u0434\u0438\u043e\u043f\u043b\u0435\u0435\u0440\u044b  *\/ - (void)initAudioPlayers {     NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:pathToBackgroundAudio];     self.backgroundMusicPlayer = [[AVAudioPlayer alloc]                         initWithContentsOfURL:fileURL error:nil];     [self.backgroundMusicPlayer prepareToPlay];     self.backgroundMusicPlayer.numberOfLoops = -1;          fileURL = [[NSURL alloc] initFileURLWithPath:pathToButtonAudio];     self.buttonSoundPlayer = [[AVAudioPlayer alloc]                               initWithContentsOfURL:fileURL error:nil];     [self.buttonSoundPlayer prepareToPlay]; } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435. \u0414\u0435\u0444\u0438\u043d\u0438\u0446\u0438\u0438 \u043f\u0443\u0442\u0435\u0439 \u043a \u0430\u0443\u0434\u0438\u043e\u0444\u0430\u0439\u043b\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 <i>Config.h<\/i>. \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u043b\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0439 \u0444\u043e\u043d\u043e\u0432\u043e\u0439 \u043c\u0443\u0437\u044b\u043a\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0443 \u044d\u0442\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u2014 \u0442\u043e \u0430\u0443\u0434\u0438\u043e\u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e. \u0422\u043e, \u0447\u0442\u043e \u043d\u0430\u0434\u043e! \u0422\u0430\u043a \u0436\u0435 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u043e \u043c\u0435\u0442\u043e\u0434\u0435 <i>prepareToPlay<\/i> \u2014 \u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0430\u0443\u0434\u0438\u043e\u043f\u043b\u0435\u0435\u0440\u044b, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e, \u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0435\u0440\u0435\u0434 \u043f\u0435\u0440\u0432\u044b\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u0430\u0443\u0434\u0438\u043e\u0444\u0430\u0439\u043b\u0430. \u0410 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0448\u0438\u043c \u0430\u0443\u0434\u0438\u043e\u043f\u043b\u0435\u0435\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"objectivec\">[audioPlayer.backgroundMusicPlayer play]; &lt;...&gt; [audioPlayer.backgroundMusicPlayer stop]; <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0432\u0438\u0434\u0435\u043e<\/h4>\n<p>  \u041f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u043c MediaPlayer. \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0432 \u043c\u0435\u0442\u043e\u0434 <i>viewDidAppear<\/i>:<\/p>\n<pre><code class=\"objectivec\">NSURL *url = [[NSURL alloc] initFileURLWithPath:pathToMovie]; MPMoviePlayerViewController *movieController = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [self presentMoviePlayerViewControllerAnimated:movieController]; [movieController.moviePlayer play]; <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0438\u0434\u0435\u043e\u0444\u0430\u0439\u043b \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 URL. \u0412 \u0432\u0438\u0434\u0435\u043e\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435 \u043e\u0442 Apple \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432\u0441\u0435 \u043d\u0443\u0436\u043d\u044b\u0435 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0434\u0435\u043e\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u044c. \u0422\u0430\u043a \u0447\u0442\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432\u044b\u0448\u0435 \u2014 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0434\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0435\u043e \u0432 \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<h4>In-App Purchases<\/h4>\n<p>  \u041d\u0443, \u0438 \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f: \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a StoreKit! \u041f\u0440\u0430\u0432\u0434\u0430, \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441 \u043d\u0438\u043c, \u043d\u043e \u0441 <a href=\"https:\/\/github.com\/MugunthKumar\/MKStoreKit\">MKStoreKit<\/a>. \u041e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e MugunthKumar \u0437\u0430 \u0432\u0435\u043b\u0438\u043a\u043e\u043b\u0435\u043f\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a!<\/p>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e: \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <i>MKStoreKitConfigs.plist<\/i> \u043f\u043e\u0434 \u0432\u0430\u0448\u0438 \u043d\u0443\u0436\u0434\u044b (\u0442\u0430\u043c \u0432\u0441\u0435 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e) \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u043a\u0443\u043f\u043e\u043a:<\/p>\n<pre><code class=\"objectivec\">if ([MKStoreManager isFeaturePurchased:@&quot;me.identifier.coolapp.somesinglefeature&quot;]) { \/\/ \u042e\u0437\u0435\u0440 \u0443\u0436\u0435 \u043a\u0443\u043f\u0438\u043b \u044d\u0442\u0443 \u0444\u0438\u0448\u043a\u0443! \u041d\u0443\u0436\u043d\u043e \u0435\u0435 \u0435\u043c\u0443 \u043e\u0442\u0434\u0430\u0442\u044c! } if ([MKStoreManager isSubscriptionActive:@&quot;me.identifier.coolapp.somesubscription&quot;]) { \/\/ \u0412\u0430\u0443! \u0414\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0442\u044f\u043d\u0443\u0442\u044c \u0434\u0435\u043d\u044c\u0433\u0438 \u0435\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u043e, \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e, \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e! \u041d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044e\u0437\u0435\u0440 \u0443\u0436\u0435 \u0437\u0430\u043f\u043b\u0430\u0442\u0438\u043b, \u043e\u0442\u0434\u0430\u0434\u0438\u043c \u0435\u043c\u0443 \u0437\u0430\u0441\u043b\u0443\u0436\u0435\u043d\u043d\u0443\u044e \u043f\u043b\u044e\u0448\u043a\u0443 } <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"objectivec\">[[MKStoreManager sharedManager] buyFeature:@&quot;me.identifier.coolapp.somesinglefeature&quot;                                  onComplete:^(NSString* purchasedFeature,                                               NSData* purchasedReceipt,                                               NSArray* availableDownloads) {      NSLog(@&quot;\u042e\u0437\u0435\u0440 \u043a\u0443\u043f\u0438\u043b: %@&quot;, purchasedFeature);  }                                onCancelled:^ {      NSLog(@&quot;\u042e\u0437\u0435\u0440 \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c :( \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e.&quot;);  }]; <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435 \u043d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f. \u042d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u043f\u0438\u043b\u043e\u0442\u043d\u043e\u0439, \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u043e\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448 \u043a\u043b\u0438\u0435\u043d\u0442 \u043c\u043e\u0433 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u044f\u043c\u043e \u0432 .xib \u0444\u0430\u0439\u043b\u0430\u0445, \u0431\u0435\u0437 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u044f.<\/p>\n<p>  \u041e\u0431\u043e \u0432\u0441\u0435\u0445 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0438 \u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044f\u0445 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e\u0448\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 <a href=\"http:\/\/habrahabr.ru\/users\/backmeupplz\/\">\u043c\u043e\u0439 \u0445\u0430\u0431\u0440\u0430\u0446\u0435\u043d\u0442\u0440<\/a>.<\/p>\n<p>  <b>P.S.<\/b> \u0415\u0441\u043b\u0438 \u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u0447\u0430\u0442\u044c \u0441\u043e \u043c\u043d\u043e\u0439, \u0442\u043e \u043c\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0435\u0441\u0442\u044c \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 <a href=\"http:\/\/thestickofhappiness.elance.com\">\u043a\u0440\u0443\u043f\u043d\u044b\u0445 \u0431\u0438\u0440\u0436 \u0444\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u043e\u0432<\/a>.<\/p>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u00ab\u0417\u0430\u043f\u0438\u0441\u043a\u0438 \u0424\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u0430\u00bb? \u0412\u044b\u0440\u0430\u0437\u0438\u0442\u0435 \u0441\u0432\u043e\u0435 \u043c\u043d\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/192062\/\"> http:\/\/habrahabr.ru\/post\/192062\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/293\/27c\/15c\/29327c15ccddacde0b51d70a1bfa48e2.jpg\" alt=\"image\" align=\"right\"\/>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u0425\u0430\u0431\u0440\u0430!<\/p>\n<p>  \u042f \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 iOS \u0438 Mac OS. \u0423\u0436\u0435 \u043e\u043a\u043e\u043b\u043e \u0433\u043e\u0434\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0444\u0440\u0438\u043b\u0430\u043d\u0441\u043e\u043c \u0438, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u043d\u0430\u0447\u0430\u043b \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u044c, \u0447\u0442\u043e \u0432 \u0437\u0430\u0434\u0430\u0447\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u043e\u0434\u0438\u043d\u043e\u0436\u0434\u044b; \u0430 \u043f\u0440\u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u0437\u0430\u043a\u0430\u0437\u0430, \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0443\u0436\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435 \u043c\u043e\u0434\u0443\u043b\u0438. \u0412 \u0441\u0435\u0440\u0438\u0438 \u0441\u0442\u0430\u0442\u0435\u0439 \u00ab\u0417\u0430\u043f\u0438\u0441\u043a\u0438 \u0424\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u0430\u00bb \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043e\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0432 \u0437\u0430\u043a\u0430\u0437\u0430\u0445 \u0430\u0441\u043f\u0435\u043a\u0442\u044b; \u043d\u0430\u043f\u0438\u0448\u0443 \u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0438, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e, \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437\u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044e \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u041c\u043e\u0438 \u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043d\u0438 \u0432 \u043a\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e\u0442 \u043d\u0430 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043b\u0435\u0433\u043a\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u0437\u0430\u043a\u0430\u0437 \u0432 \u0441\u0440\u043e\u043a.<\/p>\n<p>  \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:<\/p>\n<ol>\n<li><a href=\"http:\/\/habrahabr.ru\/topic\/add\/\">\u0427\u0430\u0441\u0442\u044c 1: \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0424\u0430\u0439\u043b\u0430\u043c\u0438; \u0428\u0430\u0431\u043b\u043e\u043d Singleton; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0410\u0443\u0434\u0438\u043e; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0412\u0438\u0434\u0435\u043e; In-App Purchases<\/a><\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 2: \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430 (Popups); \u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Modal Segue \u0432 Navigation Controller; Core Graphics; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 UIWebView \u0438 ScrollView<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 3: \u0416\u0438\u0437\u043d\u044c \u0431\u0435\u0437 Autolayout; Splash Screen; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u0432 iOS 6+; \u0421\u0434\u0432\u0438\u0433 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e UITextField<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 4: Google Analytics; Push Notifications; PSPDFKit; \u0412\u0445\u043e\u0434 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Facebook; \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0437\u044c\u044f\u043c \u2014 Facebook, Twitter, Email<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 5: Core Data; UITableView \u0438 UICollectionView<\/li>\n<\/ol>\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-192062","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192062","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=192062"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192062\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}