{"id":255816,"date":"2015-04-22T18:11:05","date_gmt":"2015-04-22T14:11:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=255816"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=255816","title":{"rendered":"\u041a\u0430\u043a \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043b\u0438 iPhone \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0435 \u043a\u043b\u0443\u0431\u044b \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c"},"content":{"rendered":"<p>     \t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/256\/4c8\/048\/2564c80485ec4cd29f809717a01a7b2a.png\"\/><\/p>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>  \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0418\u0433\u043e\u0440\u044c \u041b\u0438\u0442\u0432\u0438\u043d\u0435\u043d\u043a\u043e, \u044f \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u0442\u0440\u0435\u0445 \u043b\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u043f\u043e\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0434 iOS. \u0412 DataArt \u0438\u0437\u0443\u0447\u0430\u044e \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0433\u043e \u0437\u0440\u0435\u043d\u0438\u044f: \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0438 \u0442. \u0434 \u0441\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u043e\u0439 \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0447\u0443 \u0432\u0430\u043c \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u0430\u0448 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439\/\u0444\u0430\u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u0441 \u0444\u0443\u0442\u0431\u043e\u043b\u043e\u043c.<\/p>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0438 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0440\u0435\u0447\u0438 \u043e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<h5>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h5>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u043c \u043a\u043b\u0443\u0431\u0430\u043c, \u0441\u043e\u0441\u0442\u0430\u0432\u0430\u043c, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u043c\u0430\u0442\u0447\u0430\u043c. \u0414\u043b\u044f \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0439 \u043a\u0438\u043b\u043b\u0435\u0440-\u0444\u0438\u0447\u0435\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0435\u0435 \u043b\u043e\u0433\u043e\u0442\u0438\u043f. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0437 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u2014 \u043e\u043a\u043e\u043b\u043e \u0441\u0442\u0430 (\u0442\u0443\u0442 \u0443\u0436\u0435 \u043d\u0435 \u043c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u043b\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u0438 \u043e\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u043b\u0443\u0431\u044b \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0445 \u043b\u0438\u0433 \u0410\u043d\u0433\u043b\u0438\u0438). \u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u00ab\u043f\u0435\u0440\u0435\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c\u00bb \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430. <br \/>  <a name=\"habracut\"><\/a><br \/>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/2f4\/b3b\/142\/2f4b3b142df2493d950a462c07c7514d.png\"\/><\/p>\n<h5>\u0410\u043d\u0430\u043b\u0438\u0437 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0438 \u043f\u043e\u0438\u0441\u043a \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/h5>\n<p>  \u041f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0434\u0435\u043b\u043e, \u0447\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u0442\u043e\u043a\u0435. \u041e\u0434\u043d\u0430\u043a\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043e\u0444\u0444\u043b\u0430\u0439\u043d\u0435, \u0435\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e, \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u0422\u0430\u043a, \u043c\u044b \u0443\u0436\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0436\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438. \u0422.\u0435. \u0432\u0441\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u0435. <\/p>\n<p>  \u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f. \u041d\u0438 \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u044b \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0440\u0435\u0434\u043a\u043e \u043f\u043e\u0445\u043e\u0436\u0438 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u043c\u0430\u043b\u043e \u043a\u0430\u043a\u0438\u0435 \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u044b \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0444\u043e\u0440\u043c\u0443 \u0438 \u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043b\u044e\u0431\u0443\u044e \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u044c (\u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0435 \u0441 \u043e\u0442\u0431\u043b\u0435\u0441\u043a\u043e\u043c, \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u043c \u0444\u043e\u043d\u0435, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430, \u0434\u0430 \u0434\u0430\u0436\u0435 \u0432 \u0432\u0438\u0434\u0435 \u043c\u043e\u043d\u043e\u0445\u0440\u043e\u043c\u043d\u043e\u0439 \u0442\u0430\u0442\u0443\u0438\u0440\u043e\u0432\u043a\u0438). <\/p>\n<p>  \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u044e\u0449\u0438\u0439 \u0444\u0430\u043a\u0442\u043e\u0440 \u2014 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0444\u043b\u0430\u0433\u0435 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043e: \u0444\u043b\u0430\u0433 \u2014 \u043d\u0435 \u0442\u0432\u0435\u0440\u0434\u0430\u044f \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u044c. <\/p>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435: \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u043c\u0435\u0435\u0442 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0443\u0433\u043e\u043b \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u044b\u043c \u0432\u0438\u0434\u043e\u043c. \u0412 \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u0432\u0434\u043e\u043b\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u0434\u043d\u043e\u0439 \u043e\u0441\u0438, \u0432 \u0441\u0430\u043c\u043e\u043c \u043f\u043b\u043e\u0445\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u0432\u0434\u043e\u043b\u044c \u0432\u0441\u0435\u0445 \u0442\u0440\u0435\u0445 \u043e\u0441\u0435\u0439. <\/p>\n<p>  \u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u044b \u043f\u043e\u043d\u044f\u043b\u0438, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u043c \u043d\u0430 \u0440\u0443\u043a\u0430\u0445 \u0437\u0430\u0434\u0430\u0447\u0443, \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0443\u044e \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u043d\u043e\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0433\u0434\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u0430\u043c\u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u044b \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0443\u0431\u043e\u0432. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u044f\u0441\u043d\u044e \u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442. <\/p>\n<p>  \u041f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443, \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u0434\u0432\u0435 \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u0447\u0438: \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u0430, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0443\u0433\u043b\u0430 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0432 3D, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043f\u043e\u0432\u0435\u0440\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u0430, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044f \u043a \u043d\u0435\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u041d\u0430\u043c \u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438, \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u043c\u044b \u0443\u0436\u0435 \u0441\u0430\u043c\u0438. <\/p>\n<p>  \u0420\u0435\u0448\u0438\u043b\u0438 \u043d\u0435 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434, \u0430 \u0432\u0437\u044f\u0442\u044c \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0432\u0438\u0436\u043e\u043a. \u041d\u043e, \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u0434\u044c\u044f\u0432\u043e\u043b \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445. \u041a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0432\u0438\u0436\u043a\u0438 \u0441\u0442\u0430\u0432\u044f\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0439 \u0441\u0435\u0441\u0441\u0438\u0438. \u041f\u0440\u043e \u043d\u0435\u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c: \u0447\u0442\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f, \u0447\u0442\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u043c \u044f\u0432\u043d\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0438. \u0422\u043e\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043e\u043d\u0438 \u0443\u043c\u0435\u044e\u0442 \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u2014 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432, \u043e\u0431\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u043d\u043e\u0439 \u0440\u0430\u043c\u043a\u043e\u0439, \u0447\u0442\u043e \u044f\u0432\u043d\u043e \u043d\u0435 \u043d\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. <\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0435\u0449\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u043e\u043a\u043e\u043f\u0430\u0442\u044c \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 OpenCV, \u043d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u044b \u044d\u0442\u043e \u0437\u0430\u043d\u044f\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e, \u0434\u0430 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u044b\u043b \u0431\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u0438\u043c \u043b\u0443\u0447\u0448\u0435, \u0447\u0435\u043c \u043e\u0442 \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e\u043c \u043d\u0435\u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0432\u0438\u0436\u043a\u043e\u0432. \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0430\u043d\u0438\u044f \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u2014 Vuforia \u043e\u0442 Qualcomm. \u041a\u0430\u043a, \u0447\u0442\u043e \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u2014 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043d\u0438\u0436\u0435.<\/p>\n<h5>\u041f\u043e\u0447\u0435\u043c\u0443 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 Vuforia<\/h5>\n<p>  Vuforia \u2014 \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0435\u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0432\u0438\u0436\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432, \u0442\u0440\u0435\u043a\u0438\u043d\u0433 (\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u0430 \u0432 \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0434\u0440\u0435) \u0438 \u0440\u0430\u0441\u0447\u0435\u0442 \u0443\u0433\u043b\u043e\u0432 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430. \u0421\u0414\u041a \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 \u0432\u0430\u0448\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u043b\u0438\u0448\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 OpenGL ES \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445. \u041f\u043e \u0441\u0443\u0442\u0438, \u044d\u0442\u043e \u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435: \u043c\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d. \u041e\u0434\u043d\u0430\u043a\u043e \u0436\u0435, \u0435\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u0440\u0435\u0448\u0430\u043b\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u043c \u043c\u0438\u043d\u0443\u0441\u043e\u043c. \u0425\u043e\u0442\u044c \u0443 Vuforia \u0438 \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d Unity \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438, \u0432\u0441\u0435 \u0436\u0435, \u044f \u0441\u0447\u0438\u0442\u0430\u044e, \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c (\u0442\u0430 \u0436\u0435 MetaIO \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0432 \u044d\u0442\u043e\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u0435). \u041c\u044b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0432\u044b\u0434\u0435\u043b\u0438\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 Vuforia:<\/p>\n<ul>\n<li>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0436\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u0430\u0432\u043d\u043e, \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432. \u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u043e\u0434 \u043c\u043e\u0431\u0438\u043b\u043a\u0438. <\/li>\n<li>\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439 \u0431\u0435\u0437 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439. \u0411\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u043e, \u0442\u0430\u043c \u0435\u0441\u0442\u044c \u043a\u0443\u0447\u0430 \u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0442\u0438\u043f\u0430 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0438 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439. <\/li>\n<li>\u0412-\u0442\u0440\u044c\u0435\u0442\u0438\u0445, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u0444\u043e\u0440\u0443\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438. \u0422\u0430\u043c \u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u041d\u0443 \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u0432\u0438\u0436\u043a\u0430<\/li>\n<li>\u0412\u0438\u0448\u0435\u043d\u043a\u0430 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435 \u2014 \u0435\u0441\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u043e\u0434 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0430\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. <\/li>\n<\/ul>\n<h5>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 <\/h5>\n<p>  \u0421\u0430\u043c\u0430 Vuforia \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u043b\u0430\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0431\u0435\u0437\u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c Vuforia \u2014 \u0432\u044b\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0438 \u0432\u044b\u0447\u043b\u0435\u043d\u0438\u0442\u044c \u043e\u0442\u0442\u0443\u0434\u0430 \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043e\u0431\u0449\u0438\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0442. \u0447. \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e \u0432 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u044e\u0437\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0438\u0434.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u0434 \u0434\u043b\u044f EAGLView<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">MSImageRecognitionEAGLView.mm  - (void)dealloc {     [self deleteFramebuffer];     if ([EAGLContext currentContext] == _context) {         [EAGLContext setCurrentContext:nil];     } }  - (id)initWithCoder:(NSCoder *)aDecoder{     self = [super initWithCoder:aDecoder];     if (self){         vapp = [MSImageRecognitionSession sharedSession];         [self setup];     }     return self; }  - (id)initWithFrame:(CGRect)frame{     self = [super initWithFrame:frame];     if (self){         vapp = [MSImageRecognitionSession sharedSession];         [self setup];     }     return self; }  - (id)initWithFrame:(CGRect)frame appSession:(MSImageRecognitionSession *) app {     self = [super initWithFrame:frame];          if (self) {         vapp = app;         [self setup];     }          return self; }  - (void)setup {     if (YES == [vapp isRetinaDisplay]) {         [self setContentScaleFactor:2.0f];     }          _context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];          if (_context != [EAGLContext currentContext]) {         [EAGLContext setCurrentContext:_context];     }          offTargetTrackingEnabled = NO; }  - (void)finishOpenGLESCommands {     if (_context) {         [EAGLContext setCurrentContext:_context];         glFinish();     } }  - (void)freeOpenGLESResources {     [self deleteFramebuffer];     glFinish(); }  - (void) setOffTargetTrackingMode:(BOOL) enabled {     offTargetTrackingEnabled = enabled; }  - (void)renderFrameQCAR {     [self setFramebuffer];          glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);          QCAR::State state = QCAR::Renderer::getInstance().begin();     QCAR::Renderer::getInstance().drawVideoBackground();          glEnable(GL_DEPTH_TEST);     if (offTargetTrackingEnabled) {         glDisable(GL_CULL_FACE);     } else {         glEnable(GL_CULL_FACE);     }     glCullFace(GL_BACK);     if(QCAR::Renderer::getInstance().getVideoBackgroundConfig().mReflection == QCAR::VIDEO_BACKGROUND_REFLECTION_ON)         glFrontFace(GL_CW);      else         glFrontFace(GL_CCW);          glDisable(GL_DEPTH_TEST);     glDisable(GL_CULL_FACE);          glDisableVertexAttribArray(vertexHandle);     glDisableVertexAttribArray(normalHandle);     glDisableVertexAttribArray(textureCoordHandle);          QCAR::Renderer::getInstance().end();     [self presentFramebuffer]; }  - (void)createFramebuffer {     if (_context) {         glGenFramebuffers(1, &_defaultFramebuffer);         glBindFramebuffer(GL_FRAMEBUFFER, _defaultFramebuffer);                  glGenRenderbuffers(1, &_colorRenderbuffer);         glBindRenderbuffer(GL_RENDERBUFFER, _colorRenderbuffer);                  [_context renderbufferStorage:GL_RENDERBUFFER fromDrawable:(CAEAGLLayer*)self.layer];         GLint framebufferWidth;         GLint framebufferHeight;         glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_WIDTH, &framebufferWidth);         glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_HEIGHT, &framebufferHeight);         glGenRenderbuffers(1, &depthRenderbuffer);         glBindRenderbuffer(GL_RENDERBUFFER, depthRenderbuffer);         glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT16, framebufferWidth, framebufferHeight);                  glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, _colorRenderbuffer);         glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depthRenderbuffer);         glBindRenderbuffer(GL_RENDERBUFFER, _colorRenderbuffer);     } }   - (void)deleteFramebuffer {     if (_context) {         [EAGLContext setCurrentContext:_context];                  if (_defaultFramebuffer) {             glDeleteFramebuffers(1, &_defaultFramebuffer);             _defaultFramebuffer = 0;         }                  if (_colorRenderbuffer) {             glDeleteRenderbuffers(1, &_colorRenderbuffer);             _colorRenderbuffer = 0;         }                  if (depthRenderbuffer) {             glDeleteRenderbuffers(1, &depthRenderbuffer);             depthRenderbuffer = 0;         }     } }   - (void)setFramebuffer {     if (_context != [EAGLContext currentContext]) {         [EAGLContext setCurrentContext:_context];     }          if (!_defaultFramebuffer) {         [self performSelectorOnMainThread:@selector(createFramebuffer) withObject:self waitUntilDone:YES];     }          glBindFramebuffer(GL_FRAMEBUFFER, _defaultFramebuffer); }  - (BOOL)presentFramebuffer {     glBindRenderbuffer(GL_RENDERBUFFER, _colorRenderbuffer);     return [_context presentRenderbuffer:GL_RENDERBUFFER]; }   MSImageRecognitionSession.mm #import &quot;MSImageRecognitionSession.h&quot; #import &lt;QCAR\/QCAR.h&gt; #import &lt;QCAR\/QCAR_iOS.h&gt; #import &lt;QCAR\/Tool.h&gt; #import &lt;QCAR\/Renderer.h&gt; #import &lt;QCAR\/CameraDevice.h&gt; #import &lt;QCAR\/VideoBackgroundConfig.h&gt; #import &lt;QCAR\/UpdateCallback.h&gt; #import &lt;QCAR\/TrackerManager.h&gt; #import &lt;QCAR\/ImageTracker.h&gt; #import &lt;QCAR\/Trackable.h&gt; #import &lt;QCAR\/DataSet.h&gt; #import &lt;QCAR\/TrackableResult.h&gt; #import &lt;QCAR\/TargetFinder.h&gt; #import &lt;QCAR\/Trackable.h&gt; #import &lt;QCAR\/ImageTarget.h&gt; #import &lt;AVFoundation\/AVFoundation.h&gt;  namespace {     \/\/ --- Data private to this unit ---          \/\/ NSerror domain for errors coming from the Sample application template classes     static NSString * const MSImageRecognitionSessionErrorDomain = @&quot;ImageRecognitionSessionErrorDomain&quot;;          static const int MS_QCARInitFlags = QCAR::GL_20;          \/\/ instance of the seesion used to support the QCAR callback there should be only one instance of a session at any given point of time     static MSImageRecognitionSession* __sharedInstance = nil;     static BOOL __initialized = NO;          \/\/ camera to use for the session     QCAR::CameraDevice::CAMERA mCamera = QCAR::CameraDevice::CAMERA_DEFAULT;          \/\/ class used to support the QCAR callback mechanism     class VuforiaApplication_UpdateCallback : public QCAR::UpdateCallback {         virtual void QCAR_onUpdate(QCAR::State& state);     } qcarUpdate; }  static inline void MSDispatchMain(void (^block)(void)) {     dispatch_async(dispatch_get_main_queue(), block); }  NSString * const MSImageRecognitionCloudAccessKey = @&quot;MSImageRecognitionCloudAccessKey&quot;; NSString * const MSImageRecognitionCloudSecretKey = @&quot;MSImageRecognitionCloudSecretKey&quot;;  @interface MSImageRecognitionSession () {     CGSize                  _boundsSize;     UIInterfaceOrientation  _interfaceOrientation;          dispatch_queue_t _dispatchQueue;          QCAR::DataSet **_dataSets;     NSInteger       _dataSetsCount;          BOOL _isCloudRecognition; }  @property (atomic, readwrite) BOOL cameraIsActive;  @property (nonatomic, copy) MSImageRecognitionBlock recognitionBlock;  @end  @implementation MSImageRecognitionSession  \/\/ Determine whether the device has a retina display + (BOOL)isRetinaDisplay {     \/\/ If UIScreen mainScreen responds to selector displayLinkWithTarget:selector: and the scale property is 2.0, then this is a retina display     return ([[UIScreen mainScreen] respondsToSelector:@selector(displayLinkWithTarget:selector:)] && 2.0 == [UIScreen mainScreen].scale); }  - (BOOL) isRetinaDisplay{     return [[self class] isRetinaDisplay]; }  #pragma mark - Cleanup  - (void)cleanupSession:(MSImageRecognitionCompletionBlock)completion; {     MSImageRecognitionCompletionBlock blockCopy = completion ? [completion copy] : nil;          dispatch_async(_dispatchQueue, ^{         self.recognitionBlock = nil;         if(_dataSets) {             delete[] _dataSets;             _dataSets = NULL;         }         if(blockCopy) {             MSDispatchMain(^{                 blockCopy(YES, nil);             });         }     }); }  #pragma mark - Init  + (instancetype)sharedSession {     static dispatch_once_t onceToken;     dispatch_once(&onceToken, ^{         __sharedInstance = [MSImageRecognitionSession new];     });     return __sharedInstance; }  - (id)init {     self = [super init];     if(self) {         QCAR::registerCallback(&qcarUpdate);         _interfaceOrientation = UIInterfaceOrientationPortrait;         _dispatchQueue = dispatch_queue_create(&quot;imageRecognitionSession.queue.FlagRecognition&quot;, DISPATCH_QUEUE_SERIAL);     }     return self; }  - (void)initializeSessionOnCloud:(BOOL)isCloudRecognition withCompletion:(MSImageRecognitionCompletionBlock)completion {     dispatch_async(_dispatchQueue, ^{         _isCloudRecognition = isCloudRecognition;                  NSError *error = nil;         MSImageRecognitionCompletionBlock blockCopy = completion ? [completion copy] : nil;                  if(!__initialized && ![self initialize:&error]) {             NSLog(@&quot;Failed to initialize image recognition session: %@&quot;, error);         }         MSDispatchMain(^{             if(blockCopy) blockCopy(error == nil, error);         });     }); }  \/\/ Initialize the Vuforia SDK - (BOOL)initialize:(NSError **)error {     DLog(@&quot;&quot;);     NSParameterAssert(error);     self.cameraIsActive  = NO;     self.cameraIsStarted = NO;          \/\/ If this device has a retina display, we expect the view bounds to have been scaled up by a factor of 2; this allows it to calculate the size and position of     \/\/ the viewport correctly when rendering the video background. The ARViewBoundsSize is the dimension of the AR view as seen in portrait, even if the orientation is landscape     CGSize screenSize = [[UIScreen mainScreen] bounds].size;     if ([MSImageRecognitionSession isRetinaDisplay]) {         screenSize.width  *= 2.0;         screenSize.height *= 2.0;     }     _boundsSize = screenSize;          \/\/ Initialising QCAR is a potentially lengthy operation, so perform it on a background thread          QCAR::setInitParameters(MS_QCARInitFlags);          \/\/ QCAR::init() will return positive numbers up to 100 as it progresses towards success.  Negative numbers indicate error conditions     NSInteger initSuccess = 0;     do {         initSuccess = QCAR::init();     } while (0 &lt;= initSuccess && 100 &gt; initSuccess);          if(initSuccess != 100) {         *error = [self errorWithCode:E_INITIALIZING_QCAR];         return NO;     }          [self prepareAR];          __initialized = YES;          return YES; }  - (void)prepareAR  {     \/\/ Tell QCAR we've created a drawing surface     QCAR::onSurfaceCreated();          \/\/ Frames from the camera are always landscape, no matter what the orientation of the device.  Tell QCAR to rotate the video background (and     \/\/ the projection matrix it provides to us for rendering our augmentation) by the proper angle in order to match the EAGLView orientation     switch (_interfaceOrientation) {         case UIInterfaceOrientationPortrait:             QCAR::setRotation(QCAR::ROTATE_IOS_90);             break;         case UIInterfaceOrientationPortraitUpsideDown:             QCAR::setRotation(QCAR::ROTATE_IOS_270);             break;         case UIInterfaceOrientationLandscapeLeft:             QCAR::setRotation(QCAR::ROTATE_IOS_180);             break;         case UIInterfaceOrientationLandscapeRight:             QCAR::setRotation(1);             break;     }          if(UIInterfaceOrientationIsPortrait(_interfaceOrientation)) {         QCAR::onSurfaceChanged(_boundsSize.width, _boundsSize.height);     }     else {         QCAR::onSurfaceChanged(_boundsSize.height, _boundsSize.width);     } }  #pragma mark - AR control  - (void)resumeAR:(MSImageRecognitionCompletionBlock)block {     dispatch_async(_dispatchQueue, ^{         NSError *error = nil;         MSImageRecognitionCompletionBlock blockCopy = block ? [block copy] : nil;                  QCAR::onResume();                  \/\/ if the camera was previously started, but not currently active, then we restart it         if ((self.cameraIsStarted) && (! self.cameraIsActive)) {                          \/\/ initialize the camera             if (! QCAR::CameraDevice::getInstance().init(mCamera)) {                 [self errorWithCode:E_INITIALIZING_CAMERA error:&error];                 MSDispatchMain(^{                     if(blockCopy) blockCopy(NO, error);                 });                 return;             }                          \/\/ start the camera             if (!QCAR::CameraDevice::getInstance().start()) {                 [self errorWithCode:E_STARTING_CAMERA error:&error];                 MSDispatchMain(^{                     if(blockCopy) blockCopy(NO, error);                 });                 return;             }                          self.cameraIsActive = YES;         }         MSDispatchMain(^{             if(blockCopy) blockCopy(YES, nil);         });     }); }  - (void)pauseAR:(MSImageRecognitionCompletionBlock)block {     dispatch_async(_dispatchQueue, ^{         MSImageRecognitionCompletionBlock blockCopy = block ? [block copy] : nil;                  if (self.cameraIsActive) {             NSError *error = nil;             \/\/ Stop and deinit the camera             if(! QCAR::CameraDevice::getInstance().stop()) {                 [self errorWithCode:E_STOPPING_CAMERA error:&error];                 MSDispatchMain(^{                     if(blockCopy) blockCopy(NO, error);                 });                 return;             }             if(! QCAR::CameraDevice::getInstance().deinit()) {                 [self errorWithCode:E_DEINIT_CAMERA error:&error];                 MSDispatchMain(^{                     if(blockCopy) blockCopy(NO, error);                 });                 return;             }             self.cameraIsActive = NO;         }         QCAR::onPause();                  MSDispatchMain(^{             if(blockCopy) blockCopy(YES, nil);         });     }); }  - (void)startAR:(MSImageRecognitionCompletionBlock)block recognitionBlock:(MSImageRecognitionBlock)recognitionBlock; {     __block NSError * error_ = nil;     __block BOOL isSuccess = YES;     MSImageRecognitionCompletionBlock blockCopy = block ? [block copy] : nil;     self.recognitionBlock = recognitionBlock;      if ([AVCaptureDevice respondsToSelector:@selector(requestAccessForMediaType:completionHandler:)]) {         \/\/ Completion handler will be dispatched on a separate thread         [AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo completionHandler:^(BOOL granted) {             if (YES == granted) {                 isSuccess = [self startCamera:QCAR::CameraDevice::CAMERA_BACK viewWidth:_boundsSize.width andHeight:_boundsSize.height error:&error_];                 if (isSuccess) {                     self.cameraIsActive = YES;                     self.cameraIsStarted = YES;                 }             } else {                 UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@&quot;Permissions Error&quot; message:@&quot;Please allow to use camera in Settings &gt; Privacy &gt; Camera&quot; delegate:nil cancelButtonTitle:@&quot;Okay&quot; otherButtonTitles: nil];                 [alert show];             }             self.cameraIsActive = NO;             self.cameraIsStarted = NO;             MSDispatchMain(^{                 if(blockCopy) blockCopy(isSuccess, error_);             });         }];     } else {         isSuccess = [self startCamera:QCAR::CameraDevice::CAMERA_BACK viewWidth:_boundsSize.width andHeight:_boundsSize.height error:&error_];         if (isSuccess) {             self.cameraIsActive = YES;             self.cameraIsStarted = YES;         }         if(blockCopy) blockCopy(isSuccess, error_);     } }  \/\/ Stop QCAR camera - (void)stopAR:(MSImageRecognitionCompletionBlock)block {     dispatch_async(_dispatchQueue, ^{         NSError *error = nil;         MSImageRecognitionCompletionBlock blockCopy = block ? [block copy] : nil;                  \/\/ Stop the camera         if (self.cameraIsActive) {             \/\/ Stop and deinit the camera             QCAR::CameraDevice::getInstance().stop();             QCAR::CameraDevice::getInstance().deinit();             self.cameraIsActive = NO;         }         self.cameraIsStarted = NO;                  \/\/ ask the application to stop the trackers         if(![self stopTrackers]) {             [self errorWithCode:E_STOPPING_TRACKERS error:&error];             MSDispatchMain(^{                 if(blockCopy) blockCopy(NO, error);             });             return;         }                  \/\/ ask the application to unload the data associated to the trackers         if(![self deactivateDataSets]) {             [self errorWithCode:E_UNLOADING_TRACKERS_DATA error:&error];             MSDispatchMain(^{                 if(blockCopy) blockCopy(NO, error);             });             return;         }                  \/\/ ask the application to deinit the trackers         [self deinitTrackers];                  \/\/ Pause and deinitialise QCAR         QCAR::onPause();         \/\/    QCAR::deinit();                  MSDispatchMain(^{             if(blockCopy) blockCopy(YES, nil);         });     }); }  \/\/ stop the camera - (void)stopCamera:(MSImageRecognitionCompletionBlock)block {     dispatch_async(_dispatchQueue, ^{         NSError *error = nil;         MSImageRecognitionCompletionBlock blockCopy = block ? [block copy] : nil;                  if (self.cameraIsActive) {             \/\/ Stop and deinit the camera             QCAR::CameraDevice::getInstance().stop();             QCAR::CameraDevice::getInstance().deinit();             self.cameraIsActive = NO;         } else {             [self errorWithCode:E_CAMERA_NOT_STARTED error:&error];             MSDispatchMain(^{                 if(blockCopy) blockCopy(NO, error);             });             return;         }         self.cameraIsStarted = NO;                  \/\/ Stop the trackers         if(![self stopTrackers]) {             [self errorWithCode:E_STOPPING_TRACKERS error:&error];             MSDispatchMain(^{                 if(blockCopy) blockCopy(NO, error);             });             return;         }         MSDispatchMain(^{             if(blockCopy) blockCopy(YES, nil);         });     }); }  \/\/ Start QCAR camera with the specified view size - (BOOL)startCamera:(QCAR::CameraDevice::CAMERA)camera viewWidth:(float)viewWidth andHeight:(float)viewHeight error:(NSError **)error {     \/\/ initialize the camera     if (! QCAR::CameraDevice::getInstance().init(camera)) {         [self errorWithCode:-1 error:error];         return NO;     }          \/\/ start the camera     if (!QCAR::CameraDevice::getInstance().start()) {         [self errorWithCode:-1 error:error];         return NO;     }          \/\/ we keep track of the current camera to restart this     \/\/ camera when the application comes back to the foreground     mCamera = camera;          \/\/ ask the application to start the tracker(s)     if(![self startTrackers]) {         [self errorWithCode:-1 error:error];         return NO;     }          \/\/ configure QCAR video background     [self configureVideoBackgroundWithViewWidth:viewWidth andHeight:viewHeight];          \/\/ Cache the projection matrix     const QCAR::CameraCalibration& cameraCalibration = QCAR::CameraDevice::getInstance().getCameraCalibration();     _projectionMatrix = QCAR::Tool::getProjectionGL(cameraCalibration, 2.0f, 5000.0f);     return YES; }  #pragma mark - Trackers management  \/*!  *  @brief Trying to connect to cloud database  *  @param keys Dictionary that should contains access keys for the cloud DB. Must contain values for MSImageRecognitionCloudAccessKey and MSImageRecognitionCloudSecretKey keys. Cannot be nil.  *  @param completion Completion block.  *\/ - (void)loadCloudTrackerForKeys:(NSDictionary *)keys withCompletion:(MSImageRecognitionCompletionBlock)completion {          NSParameterAssert(keys[MSImageRecognitionCloudAccessKey] && keys[MSImageRecognitionCloudSecretKey]);          MSImageRecognitionCompletionBlock blockCopy = completion ? [completion copy] : nil;     NSError *error = nil;          if([self initTracker:&error]) {         [self loadCloudTrackerWithAccessKey:keys[MSImageRecognitionCloudAccessKey] andPrivateKey:keys[MSImageRecognitionCloudSecretKey] error:&error];     }          MSDispatchMain(^{         if(blockCopy) blockCopy(error == nil, error);     }); }  - (void)loadBundledDataSets:(NSArray *)dataSetFilesNames withCompletion:(MSImageRecognitionCompletionBlock)completion {     dispatch_async(_dispatchQueue, ^{         NSError *error = nil;         MSImageRecognitionCompletionBlock blockCopy = completion ? [completion copy] : nil;                  if([self initTracker:&error]) {                          _dataSetsCount = dataSetFilesNames.count;             _dataSets = new QCAR::DataSet*[_dataSetsCount];                          NSInteger idx   = 0;             for(NSString *fileName in dataSetFilesNames) {                 QCAR::DataSet *dataSet = [self loadBundleDataSetWithName:fileName];                 if (dataSet == NULL) {                     NSLog(@&quot;Failed to load datasets&quot;);                     error = [self errorWithCode:E_LOADING_TRACKERS_DATA];                     break;                 }                 if (![self activateDataSet:dataSet]) {                     NSLog(@&quot;Failed to activate dataset&quot;);                     error = [self errorWithCode:E_LOADING_TRACKERS_DATA];                     break;                 }                 _dataSets[idx++] = dataSet;             }             if(error) {                 if(_dataSets) {                     delete[] _dataSets;                 }             }         }                  MSDispatchMain(^{             if(blockCopy) blockCopy(error == nil, error);         });     }); }  - (BOOL)initTracker:(NSError **)error {     NSParameterAssert(error);     QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();     QCAR::Tracker*        trackerBase    = trackerManager.initTracker(QCAR::ImageTracker::getClassType());     if (!trackerBase){         trackerBase = trackerManager.getTracker(QCAR::ImageTracker::getClassType());     }      if (!trackerBase) {         NSLog(@&quot;Failed to initialize ImageTracker.&quot;);         *error = [self errorWithCode:E_INIT_TRACKERS];         return NO;     }          if(_isCloudRecognition) {         QCAR::TargetFinder* targetFinder = static_cast&lt;QCAR::ImageTracker*&gt;(trackerBase)-&gt;getTargetFinder();         if (!targetFinder) {             NSLog(@&quot;Failed to get target finder.&quot;);             *error = [self errorWithCode:E_INIT_TRACKERS];             return NO;         }     }          NSLog(@&quot;Successfully initialized ImageTracker.&quot;);     return YES; }  - (void)deinitTrackers {     QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();     trackerManager.deinitTracker(QCAR::ImageTracker::getClassType()); }  - (BOOL)startTrackers {     QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();     QCAR::Tracker* tracker = trackerManager.getTracker(QCAR::ImageTracker::getClassType());     if(tracker == 0) {         return NO;     }     tracker-&gt;start();          if(_isCloudRecognition) {         QCAR::ImageTracker* imageTracker = static_cast&lt;QCAR::ImageTracker*&gt;(tracker);         QCAR::TargetFinder* targetFinder = imageTracker-&gt;getTargetFinder();         assert (targetFinder != 0);         targetFinder-&gt;startRecognition();     }          return YES; }  - (BOOL)stopTrackers {     QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();     QCAR::ImageTracker* imageTracker = static_cast&lt;QCAR::ImageTracker*&gt;(trackerManager.getTracker(QCAR::ImageTracker::getClassType()));          if (!imageTracker) {         NSLog(@&quot;ERROR: failed to get the tracker from the tracker manager&quot;);         return NO;     }          imageTracker-&gt;stop();     DLog(@&quot;INFO: successfully stopped tracker&quot;);          if(_isCloudRecognition) { \/\/ Stop cloud based recognition:         QCAR::TargetFinder* targetFinder = imageTracker-&gt;getTargetFinder();         assert(targetFinder != 0);         targetFinder-&gt;stop();         DLog(@&quot;INFO: successfully stopped cloud tracker&quot;);     }     return YES; }  #pragma mark - DataSet loading  - (BOOL)loadCloudTrackerWithAccessKey:(NSString *)accessKey andPrivateKey:(NSString *)privateKey error:(NSError **)error {     QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();     QCAR::ImageTracker* imageTracker = static_cast&lt;QCAR::ImageTracker*&gt;(trackerManager.getTracker(QCAR::ImageTracker::getClassType()));     if (imageTracker == NULL) {         NSLog(@&quot;&gt;doLoadTrackersData&gt;Failed to load tracking data set because the ImageTracker has not been initialized.&quot;);         *error = [self errorWithCode:E_LOADING_TRACKERS_DATA];         return NO;     }          \/\/ Initialize visual search:     QCAR::TargetFinder* targetFinder = imageTracker-&gt;getTargetFinder();     if (targetFinder == NULL) {         NSLog(@&quot;&gt;doLoadTrackersData&gt;Failed to get target finder.&quot;);         *error = [self errorWithCode:E_LOADING_TRACKERS_DATA];         return NO;     }          NSDate *start = [NSDate date];          \/\/ Start initialization:     if (targetFinder-&gt;startInit([accessKey cStringUsingEncoding:NSUTF8StringEncoding], [privateKey cStringUsingEncoding:NSUTF8StringEncoding])) {         targetFinder-&gt;waitUntilInitFinished();                  NSDate *methodFinish = [NSDate date];         NSTimeInterval executionTime = [methodFinish timeIntervalSinceDate:start];                  NSLog(@&quot;waitUntilInitFinished Execution Time: %f&quot;, executionTime);     }          int resultCode = targetFinder-&gt;getInitState();     if ( resultCode != QCAR::TargetFinder::INIT_SUCCESS) {                  if (resultCode == QCAR::TargetFinder::INIT_ERROR_NO_NETWORK_CONNECTION) {             NSLog(@&quot;CloudReco error:QCAR::TargetFinder::INIT_ERROR_NO_NETWORK_CONNECTION&quot;);         }         else if (resultCode == QCAR::TargetFinder::INIT_ERROR_SERVICE_NOT_AVAILABLE) {             NSLog(@&quot;CloudReco error:QCAR::TargetFinder::INIT_ERROR_SERVICE_NOT_AVAILABLE&quot;);         }         else {             NSLog(@&quot;CloudReco error:%d&quot;, resultCode);         }                  int initErrorCode = (resultCode == QCAR::TargetFinder::INIT_ERROR_NO_NETWORK_CONNECTION ? QCAR::TargetFinder::UPDATE_ERROR_NO_NETWORK_CONNECTION                                                                                                 : QCAR::TargetFinder::UPDATE_ERROR_SERVICE_NOT_AVAILABLE);         *error = [self cloudRecognitionErrorForCode:initErrorCode];         return NO;     } else {         NSLog(@&quot;cloud target finder initialized&quot;);         return YES;     } }  - (QCAR::DataSet *)loadBundleDataSetWithName:(NSString *)dataFile {     DLog(@&quot;loadImageTrackerDataSet (%@)&quot;, dataFile);     QCAR::DataSet * dataSet = NULL;          QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();     QCAR::ImageTracker* imageTracker = static_cast&lt;QCAR::ImageTracker*&gt;(trackerManager.getTracker(QCAR::ImageTracker::getClassType()));          if (NULL == imageTracker) {         NSLog(@&quot;ERROR: failed to get the ImageTracker from the tracker manager&quot;);         return NULL;     }     else {         dataSet = imageTracker-&gt;createDataSet();                  if (NULL != dataSet) {             DLog(@&quot;INFO: successfully loaded data set&quot;);                          \/\/ Load the data set from the app's resources location             if (!dataSet-&gt;load([dataFile cStringUsingEncoding:NSASCIIStringEncoding], QCAR::DataSet::STORAGE_APPRESOURCE)) {                 NSLog(@&quot;ERROR: failed to load data set&quot;);                 imageTracker-&gt;destroyDataSet(dataSet);                 dataSet = NULL;             }         }         else {             NSLog(@&quot;ERROR: failed to create data set&quot;);         }     }     return dataSet; }  - (BOOL)activateDataSet:(QCAR::DataSet *)theDataSet {     BOOL success = NO;          \/\/ Get the image tracker:     QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();     QCAR::ImageTracker* imageTracker = static_cast&lt;QCAR::ImageTracker*&gt;(trackerManager.getTracker(QCAR::ImageTracker::getClassType()));          if (imageTracker == NULL) {         NSLog(@&quot;Failed to load tracking data set because the ImageTracker has not been initialized.&quot;);     }     else {         \/\/ Activate the data set:         if (!imageTracker-&gt;activateDataSet(theDataSet)) {             NSLog(@&quot;Failed to activate data set.&quot;);         }         else {             NSLog(@&quot;Successfully activated data set.&quot;);             success = YES;         }     }     return success; }  - (BOOL)deactivateDataSets {     \/\/ Get the image tracker:     QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();     QCAR::ImageTracker*   imageTracker   = static_cast&lt;QCAR::ImageTracker*&gt;(trackerManager.getTracker(QCAR::ImageTracker::getClassType()));     if (imageTracker == NULL) {         NSLog(@&quot;Failed to unload tracking data set because the ImageTracker has not been initialized.&quot;);         return NO;     }     if(_isCloudRecognition) {         QCAR::TargetFinder* finder = imageTracker-&gt;getTargetFinder();         finder-&gt;deinit();     }     else {         for(int i = 0; i &lt; _dataSetsCount; i++) {             QCAR::DataSet *dataSet = _dataSets[i];             if(dataSet != NULL) {                 if (imageTracker-&gt;deactivateDataSet(dataSet)) {                     DLog(@&quot;Dataset was deactivated succesfullty&quot;);                     if(imageTracker-&gt;destroyDataSet(dataSet)) {                         DLog(@&quot;Dataset was destroyed succesfullty&quot;);                     }                     else {                         NSLog(@&quot;Failed to destroy dataset&quot;);                     }                 }                 else {                     NSLog(@&quot;Failed to deactivate data set.&quot;);                 }             }         }     }     return YES; }  #pragma mark - Camera setup  \/\/ Configure QCAR with the video background size - (void)configureVideoBackgroundWithViewWidth:(float)viewWidth andHeight:(float)viewHeight {     \/\/ Get the default video mode     QCAR::CameraDevice& cameraDevice = QCAR::CameraDevice::getInstance();     QCAR::VideoMode videoMode = cameraDevice.getVideoMode(QCAR::CameraDevice::MODE_DEFAULT);          \/\/ Configure the video background     QCAR::VideoBackgroundConfig config;     config.mEnabled = true;     config.mSynchronous = true;     config.mPosition.data[0] = 0.0f;     config.mPosition.data[1] = 0.0f;          \/\/ Determine the orientation of the view.  Note, this simple test assumes     \/\/ that a view is portrait if its height is greater than its width.  This is     \/\/ not always true: it is perfectly reasonable for a view with portrait     \/\/ orientation to be wider than it is high.  The test is suitable for the     \/\/ dimensions used in this sample     if (UIInterfaceOrientationIsPortrait(_interfaceOrientation)) {         \/\/ --- View is portrait ---                  \/\/ Compare aspect ratios of video and screen.  If they are different we         \/\/ use the full screen size while maintaining the video's aspect ratio,         \/\/ which naturally entails some cropping of the video         float aspectRatioVideo = (float)videoMode.mWidth \/ (float)videoMode.mHeight;         float aspectRatioView = viewHeight \/ viewWidth;                  if (aspectRatioVideo &lt; aspectRatioView) {             \/\/ Video (when rotated) is wider than the view: crop left and right             \/\/ (top and bottom of video)                          \/\/ --============--             \/\/ - =          = _             \/\/ - =          = _             \/\/ - =          = _             \/\/ - =          = _             \/\/ - =          = _             \/\/ - =          = _             \/\/ - =          = _             \/\/ - =          = _             \/\/ --============--                          config.mSize.data[0] = (int)videoMode.mHeight * (viewHeight \/ (float)videoMode.mWidth);             config.mSize.data[1] = (int)viewHeight;         }         else {             \/\/ Video (when rotated) is narrower than the view: crop top and             \/\/ bottom (left and right of video).  Also used when aspect ratios             \/\/ match (no cropping)                          \/\/ ------------             \/\/ -          -             \/\/ -          -             \/\/ ============             \/\/ =          =             \/\/ =          =             \/\/ =          =             \/\/ =          =             \/\/ =          =             \/\/ =          =             \/\/ =          =             \/\/ =          =             \/\/ ============             \/\/ -          -             \/\/ -          -             \/\/ ------------                          config.mSize.data[0] = (int)viewWidth;             config.mSize.data[1] = (int)videoMode.mWidth * (viewWidth \/ (float)videoMode.mHeight);         }     }     else {         \/\/ --- View is landscape ---         float temp = viewWidth;         viewWidth = viewHeight;         viewHeight = temp;                  \/\/ Compare aspect ratios of video and screen.  If they are different we         \/\/ use the full screen size while maintaining the video's aspect ratio,         \/\/ which naturally entails some cropping of the video         float aspectRatioVideo = (float)videoMode.mWidth \/ (float)videoMode.mHeight;         float aspectRatioView = viewWidth \/ viewHeight;                  if (aspectRatioVideo &lt; aspectRatioView) {             \/\/ Video is taller than the view: crop top and bottom                          \/\/ --------------------             \/\/ ====================             \/\/ =                  =             \/\/ =                  =             \/\/ =                  =             \/\/ =                  =             \/\/ ====================             \/\/ --------------------                          config.mSize.data[0] = (int)viewWidth;             config.mSize.data[1] = (int)videoMode.mHeight * (viewWidth \/ (float)videoMode.mWidth);         }         else {             \/\/ Video is wider than the view: crop left and right.  Also used             \/\/ when aspect ratios match (no cropping)                          \/\/ ---====================---             \/\/ -  =                  =  -             \/\/ -  =                  =  -             \/\/ -  =                  =  -             \/\/ -  =                  =  -             \/\/ ---====================---                          config.mSize.data[0] = (int)videoMode.mWidth * (viewHeight \/ (float)videoMode.mHeight);             config.mSize.data[1] = (int)viewHeight;         }     }          \/\/ Calculate the viewport for the app to use when rendering     TagViewport viewport;     viewport.posX  = ((viewWidth - config.mSize.data[0]) \/ 2) + config.mPosition.data[0];     viewport.posY  = (((int)(viewHeight - config.mSize.data[1])) \/ (int) 2) + config.mPosition.data[1];     viewport.sizeX = config.mSize.data[0];     viewport.sizeY = config.mSize.data[1];          self.viewport = viewport;          DLog(@&quot;VideoBackgroundConfig: size: %d,%d&quot;, config.mSize.data[0], config.mSize.data[1]);     DLog(@&quot;VideoMode:w=%d h=%d&quot;, videoMode.mWidth, videoMode.mHeight);     DLog(@&quot;width=%7.3f height=%7.3f&quot;, viewWidth, viewHeight);     DLog(@&quot;ViewPort: X,Y: %d,%d Size X,Y:%d,%d&quot;, viewport.posX,viewport.posY,viewport.sizeX,viewport.sizeY);          \/\/ Set the config     QCAR::Renderer::getInstance().setVideoBackgroundConfig(config); }  #pragma mark - Error handling  \/\/ build a NSError - (NSError *)errorWithCode:(int) code {     return [NSError errorWithDomain:MSImageRecognitionSessionErrorDomain code:code userInfo:nil]; }  - (void)errorWithCode:(int) code error:(NSError **) error{     if (error != NULL) {         *error = [self errorWithCode:code];     } }  - (NSError *)cloudRecognitionErrorForCode:(int)code {          NSString *description;     NSString *suggestion;          switch (code) {         case QCAR::TargetFinder::UPDATE_ERROR_NO_NETWORK_CONNECTION:             description = @&quot;Network Unavailable&quot;;             suggestion = @&quot;Please check your internet connection and try again.&quot;;             break;         case QCAR::TargetFinder::UPDATE_ERROR_REQUEST_TIMEOUT:             description = @&quot;Request Timeout&quot;;             suggestion = @&quot;The network request has timed out, please check your internet connection and try again.&quot;;             break;         case QCAR::TargetFinder::UPDATE_ERROR_SERVICE_NOT_AVAILABLE:             description = @&quot;Service Unavailable&quot;;             suggestion = @&quot;The cloud recognition service is unavailable, please try again later.&quot;;             break;         case QCAR::TargetFinder::UPDATE_ERROR_UPDATE_SDK:             description = @&quot;Unsupported Version&quot;;             suggestion = @&quot;The application is using an unsupported version of Vuforia.&quot;;             break;         case QCAR::TargetFinder::UPDATE_ERROR_TIMESTAMP_OUT_OF_RANGE:             description = @&quot;Clock Sync Error&quot;;             suggestion = @&quot;Please update the date and time and try again.&quot;;             break;         case QCAR::TargetFinder::UPDATE_ERROR_AUTHORIZATION_FAILED:             description = @&quot;Authorization Error&quot;;             suggestion = @&quot;The cloud recognition service access keys are incorrect or have expired.&quot;;             break;         case QCAR::TargetFinder::UPDATE_ERROR_PROJECT_SUSPENDED:             description = @&quot;Authorization Error&quot;;             suggestion = @&quot;The cloud recognition service has been suspended.&quot;;             break;         case QCAR::TargetFinder::UPDATE_ERROR_BAD_FRAME_QUALITY:             description = @&quot;Poor Camera Image&quot;;             suggestion = @&quot;The camera does not have enough detail, please try again later&quot;;             break;         default:             description = @&quot;Unknown error&quot;;             suggestion = [NSString stringWithFormat:@&quot;An unknown error has occurred (Code %d)&quot;, code];             break;     }     return [NSError errorWithDomain:MSImageRecognitionSessionErrorDomain                                code:code                            userInfo:@{NSLocalizedDescriptionKey : description,                                       NSLocalizedRecoverySuggestionErrorKey : suggestion}]; }  #pragma mark - QCAR callback  - (void) QCAR_onUpdate:(QCAR::State *) state {     if(_isCloudRecognition) {         QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();         QCAR::ImageTracker* imageTracker = static_cast&lt;QCAR::ImageTracker*&gt;(trackerManager.getTracker(QCAR::ImageTracker::getClassType()));         QCAR::TargetFinder* finder = imageTracker-&gt;getTargetFinder();                  \/\/ Check if there are new results available:         const int statusCode = finder-&gt;updateSearchResults();         if (statusCode &lt; 0) {             \/\/ Show a message if we encountered an error:             NSLog(@&quot;update search result failed:%d&quot;, statusCode);             if (statusCode == QCAR::TargetFinder::UPDATE_ERROR_NO_NETWORK_CONNECTION) {                 \/\/TODO             }         }         else if (statusCode == QCAR::TargetFinder::UPDATE_RESULTS_AVAILABLE) {             for (int i = 0; i &lt; finder-&gt;getResultCount(); ++i)             {                 const QCAR::TargetSearchResult* result = finder-&gt;getResult(i);                 \/\/ Check if this target is suitable for tracking:                 if (result-&gt;getTrackingRating() &gt; 0)                 {                     \/\/ Create a new Trackable from the result:                     QCAR::Trackable* newTrackable = finder-&gt;enableTracking(*result);                     if (newTrackable != 0) {                         \/\/  Avoid entering on ContentMode when a bad target is found                         \/\/  (Bad Targets are targets that are exists on the CloudReco database but not on our own book database)                         NSLog(@&quot;Successfully created new trackable '%s' with rating '%d'.&quot;, newTrackable-&gt;getName(), result-&gt;getTrackingRating());                                                  NSString *name = [[NSString alloc] initWithUTF8String:newTrackable-&gt;getName()];                         if(name.length) {                             DLog(@&quot;recognized image with name: %@&quot;, name);                             MSDispatchMain(^{                                 self.recognitionBlock(name);                             });                         }                     }                     else                     {                         NSLog(@&quot;Failed to create new trackable.&quot;);                     }                 }             }         }     }     else {         for (int i = 0; i &lt; state-&gt;getNumTrackableResults(); ++i) {             \/\/ Get the trackable             const QCAR::TrackableResult* result = state-&gt;getTrackableResult(i);             const QCAR::Trackable& trackable = result-&gt;getTrackable();             NSString *name = [[NSString alloc] initWithUTF8String:trackable.getName()];             if(name.length) {                 DLog(@&quot;recognized image with name: %@&quot;, name);                 MSDispatchMain(^{                     self.recognitionBlock(name);                 });             }         }     } }  \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ \/\/ Callback function called by the tracker when each tracking cycle has finished void VuforiaApplication_UpdateCallback::QCAR_onUpdate(QCAR::State& state) {     if (__sharedInstance != nil) {         [__sharedInstance QCAR_onUpdate:&state];     } }  @end  #endif  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c ViewController \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 (\u043f\u0440\u043e \u043d\u0435\u0433\u043e \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435). \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<pre><code class=\"objectivec\">[[MSImageRecognitionSession sharedSession] loadBundledDataSets:[self.class dataSets] withCompletion:^(BOOL success, NSError *error)          {              MSImageRecognitionViewController *strongSelf = weakSelf;              if(!strongSelf || !_isAppeared) return;              [strongSelf onLoadARDoneWithResult:success error:error];          }];  <\/code><\/pre>\n<p>  \u0418 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u043e\u0441\u044c:  <\/p>\n<pre><code class=\"objectivec\">- (void)onLoadARDoneWithResult:(BOOL)success error:(NSError *)error {     if(success) {         __weak MSImageRecognitionViewController *weakSelf = self;         [[MSImageRecognitionSession sharedSession] startAR:^(BOOL success, NSError *error)          {              weakSelf.activityIndicator.hidden = YES;              weakSelf.cloudRecognitionSwitch.enabled = YES;               if(!_isAppeared) return;              if(error) {                  [weakSelf showAlertWithError:error];              }          } recognitionBlock:^(NSString *recognizedName)          {              MSImageRecognitionViewController *strongSelf = weakSelf;              if(!strongSelf || !_isAppeared) return;              [MSFlurryAnalytics sendScreenName:kFlurryScreenSuccessRecognition];              performCompletionBlockWithData(strongSelf.recognizeCompletion, YES, nil, recognizedName);              [strongSelf.presentingViewController dismissViewControllerAnimated:YES completion:nil];          }];     }     if(error) {         [self showAlertWithError:error];         self.activityIndicator.hidden = YES;         self.cloudRecognitionSwitch.enabled = YES;         self.view.backgroundColor = nil;     } }  <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0442\u0435\u0441\u044f. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u0440\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p>  Vuforia \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u044b\u0440\u044b\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u043a\u0435\u0440\u043e\u0432. \u0418\u0445 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0432 \u0431\u0430\u043d\u0434\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c. \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0439\u0442\u0438 \u0432 \u043f\u043e\u0440\u0442\u0430\u043b <br \/>  Develop -&gt; Target Manager -&gt; Create\\Select Database.<\/p>\n<p>  \u0418 \u0437\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0436\u0430\u0442\u044c Download Database. \u0412\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430: xml \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0438 bin \u0441 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438. <\/p>\n<p>  \u0414\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430 \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0431\u0430\u0437\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0435\u0433\u0430 \u0438\u043c\u0435\u0435\u0442 id \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0431\u0430\u0437\u0435. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u0440\u0438 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 Vuforia \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043d\u0430\u043c, \u0447\u0442\u043e \u043d\u0430\u0448\u043b\u0430 \u0442\u0430\u0440\u0433\u0435\u0442 \u0441 \u0442\u0435\u0433\u043e\u043c \u0442\u0430\u043a\u0438\u043c \u0442\u043e (\u043c\u0435\u0442\u043e\u0434 \u2014 (void) QCAR_onUpdate:(QCAR::State *) state \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 MSImageRecognitionSession). \u041c\u044b \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0442\u0435\u0433\u0443 \u043b\u0435\u0437\u0435\u043c \u0432 \u0431\u0430\u0437\u0443 \u0438 \u0434\u043e\u0441\u0442\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u043d\u0430\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443. <\/p>\n<p>  \u041d\u0430 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u0441\u0435. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b \u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0438 Today Extension \u0438 Watch Extension.<\/p>\n<p>  \u0413\u0438\u0442\u0445\u0430\u0431: <a href=\"https:\/\/github.com\/DataArt\/FootballClubsRecogniser\/tree\/master\/iOS\">github.com\/DataArt\/FootballClubsRecogniser\/tree\/master\/iOS<\/a><br \/>  AppStore: <a href=\"https:\/\/itunes.apple.com\/us\/app\/football-clubs-recognizer\/id658920969?mt=8\">itunes.apple.com\/us\/app\/football-clubs-recognizer\/id658920969?mt=8<\/a>     \t<\/p>\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\/256385\/\"> http:\/\/habrahabr.ru\/post\/256385\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t<img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/256\/4c8\/048\/2564c80485ec4cd29f809717a01a7b2a.png\"\/><\/p>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>  \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0418\u0433\u043e\u0440\u044c \u041b\u0438\u0442\u0432\u0438\u043d\u0435\u043d\u043a\u043e, \u044f \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u0442\u0440\u0435\u0445 \u043b\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u043f\u043e\u0434 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0434 iOS. \u0412 DataArt \u0438\u0437\u0443\u0447\u0430\u044e \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0433\u043e \u0437\u0440\u0435\u043d\u0438\u044f: \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0438 \u0442. \u0434 \u0441\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u043e\u0439 \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0447\u0443 \u0432\u0430\u043c \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u043d\u0430\u0448 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439\/\u0444\u0430\u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u0441 \u0444\u0443\u0442\u0431\u043e\u043b\u043e\u043c.<\/p>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e \u0432\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0438 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0440\u0435\u0447\u0438 \u043e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<h5>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h5>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u043c \u043a\u043b\u0443\u0431\u0430\u043c, \u0441\u043e\u0441\u0442\u0430\u0432\u0430\u043c, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u043c\u0430\u0442\u0447\u0430\u043c. \u0414\u043b\u044f \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0439 \u043a\u0438\u043b\u043b\u0435\u0440-\u0444\u0438\u0447\u0435\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043f\u0440\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u043d\u0430 \u0435\u0435 \u043b\u043e\u0433\u043e\u0442\u0438\u043f. \u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0437 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u2014 \u043e\u043a\u043e\u043b\u043e \u0441\u0442\u0430 (\u0442\u0443\u0442 \u0443\u0436\u0435 \u043d\u0435 \u043c\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u043b\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u0438 \u043e\u0445\u0432\u0430\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u043b\u0443\u0431\u044b \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0445 \u043b\u0438\u0433 \u0410\u043d\u0433\u043b\u0438\u0438). \u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u00ab\u043f\u0435\u0440\u0435\u043a\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c\u00bb \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430.   <\/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-255816","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255816","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=255816"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255816\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}