{"id":138,"date":"2012-03-28T17:59:22","date_gmt":"2012-03-28T13:59:22","guid":{"rendered":"http:\/\/ilya2606.ru\/?p=138"},"modified":"2012-03-28T18:12:58","modified_gmt":"2012-03-28T14:12:58","slug":"%d0%ba%d0%b0%d0%ba-%d0%bf%d0%b5%d1%80%d0%b5%d0%b2%d0%b5%d1%81%d1%82%d0%b8-%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80","status":"publish","type":"post","link":"http:\/\/ilya2606.ru\/?p=138","title":{"rendered":"\u041a\u0430\u043a \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0431\u0430\u0439\u0442\u044b \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u0430"},"content":{"rendered":"<p style=\"text-align: center;\"><a href=\"http:\/\/ilya2606.ru\/wp-content\/uploads\/2012\/03\/appel.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-144\" title=\"appel\" src=\"http:\/\/ilya2606.ru\/wp-content\/uploads\/2012\/03\/appel.jpg\" alt=\"\" width=\"300\" height=\"200\" \/><\/a><\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0432 \u0431\u0430\u0439\u0442\u0430\u0445 \u0432 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0435\u043c\u043b\u0438\u043c\u044b\u0439 \u0432\u0438\u0434.<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ul>\n<li>(int) theBytes &#8211; \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432 \u0431\u0430\u0439\u0442\u0430\u0445<\/li>\n<\/ul>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f:<\/p>\n<ul>\n<li>\u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 NSString, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>\u041a\u043e\u0434:<\/p>\n<pre dir=\"ltr\">- (NSString *)stringWithBytes:(int)theBytes {\r\n       double bytes = (double)theBytes;\r\n       NSString *type = NSLocalizedString(@\"Bytes\",nil);\r\n       if (bytes&gt;1024.00) {\r\n             type = NSLocalizedString(@\"KB\",nil);\r\n             bytes = bytes\/1024.00;\r\n             if (bytes&gt;1024.00) {\r\n                    type = NSLocalizedString(@\"MB\",nil);\r\n                    bytes = bytes\/1024.00;\r\n                    if (bytes&gt;1024.00) {\r\n                            type = NSLocalizedString(@\"GB\",nil);\r\n                            bytes = bytes\/1024.00;\r\n                    }\r\n             }\r\n      }\r\n      return [NSString stringWithFormat:@\"%.2f %@\", bytes, type];\r\n}<\/pre>\n<!-- AddThis Advanced Settings generic via filter on the_content --><div align=\"right\"><div class=\"sharexyWidgetNoindexUniqueClassName\"><div id=\"shr_73170080\"><\/div><\/div><\/div><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0432 \u0431\u0430\u0439\u0442\u0430\u0445 \u0432 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0435\u043c\u043b\u0438\u043c\u044b\u0439 \u0432\u0438\u0434. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: (int) theBytes &#8211; \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432 \u0431\u0430\u0439\u0442\u0430\u0445 \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f: \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 NSString, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0439 \u0432 \u0441\u0435\u0431\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430.<\/p>\n<div align=\"right\">\n<div class=\"sharexyWidgetNoindexUniqueClassName\">\n<div id=\"shr_73170080\"><\/div>\n<\/div>\n<\/div>\n<p><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,7,6],"tags":[],"_links":{"self":[{"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/posts\/138"}],"collection":[{"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=138"}],"version-history":[{"count":8,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":162,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions\/162"}],"wp:attachment":[{"href":"http:\/\/ilya2606.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ilya2606.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}