{"id":192310,"date":"2013-09-03T07:56:03","date_gmt":"2013-09-03T03:56:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=192310"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=192310","title":{"rendered":"<span class=\"post_title\">Quick Help \u0434\u043b\u044f \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u0432 XCode 5<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \tQuick Help \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0431\u0440\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/7f1\/1f6\/e18\/7f11f6e18695af4704860b949e06ec96.png\"\/><br \/>  <a name=\"habracut\"><\/a><br \/>  \u0420\u0430\u043d\u044c\u0448\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"http:\/\/gentlebytes.com\/appledoc\/\">appledoc<\/a> (\u0438\u043b\u0438 \u0430\u043d\u0430\u043b\u043e\u0433), \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c <code>.docset<\/code>; \u0442\u0435\u043f\u0435\u0440\u044c \u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <a href=\"http:\/\/ru.wikipedia.org\/wiki\/\u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440_\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438#.D0.94.D0.BE.D0.BA.D1.83.D0.BC.D0.B5.D0.BD.D1.82.D0.B8.D1.80.D1.83.D1.8E.D1.89.D0.B8.D0.B5_.D0.BA.D0.BE.D0.BC.D0.BC.D0.B5.D0.BD.D1.82.D0.B0.D1.80.D0.B8.D0.B8\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439<\/a>, \u0438 Quick Help \u0441\u0440\u0430\u0437\u0443 \u0435\u0433\u043e \u0443\u0432\u0438\u0434\u0438\u0442.<br \/>  \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443 \u043f\u043e\u043a\u0430 \u043d\u0435\u0442 (\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b), \u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043c\u0435\u0436\u0434\u0443 <a href=\"https:\/\/developer.apple.com\/library\/mac\/documentation\/DeveloperTools\/Conceptual\/HeaderDoc\/intro\/intro.html\">HeaderDoc<\/a> \u0438 <a href=\"http:\/\/www.stack.nl\/~dimitri\/doxygen\/index.html\">Doxygen<\/a>.<\/p>\n<h6>1)<\/h6>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0430\u0431\u0437\u0430\u0446 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438, \u0432 Quick Help \u0432\u0438\u0434\u043d\u044b \u0432\u0441\u0435:  <\/p>\n<pre><code class=\"objectivec\">\/**  Brief description.  Brief description continued.    Details follow here.  *\/ - (BOOL)doSomethingWithArgument:(NSString *)argument; <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/3ff\/138\/b9a\/3ff138b9a37cba6c7bd21ec87f90062b.png\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/f1f\/b3e\/ede\/f1fb3eedeec794089f599fafa6746de7.png\"\/><\/p>\n<h6>2)<\/h6>\n<p>  \u0421\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0442\u0435\u0433\u0438 <code>@param<\/code>, <code>@return<\/code>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>@note<\/code>, <code>@warning<\/code>, <code>@see<\/code>, <code>@code<\/code>:  <\/p>\n<pre><code class=\"objectivec\">\/**  Brief description.  Brief description continued.    Details follow here.    @note I am a note!    @warning Not thread safe!    @param argument Some string.    @return YES if operation succeeded, otherwise NO.  *\/ - (BOOL)doSomethingWithArgument:(NSString *)argument; <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/3b5\/624\/156\/3b562415672148f61b37dabef0a6668e.png\"\/><\/p>\n<h6>3)<\/h6>\n<p>  \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b, \u043d\u043e \u0438 \u0432\u0435\u0441\u044c \u043a\u043b\u0430\u0441\u0441 \u0432 \u0446\u0435\u043b\u043e\u043c:  <\/p>\n<pre><code class=\"objectivec\">\/**  Example class to show the new cool XCode 5 feature.    Usage example:  @code  QHExample *example = [QHExample new];  BOOL result = [example doSomethingWithArgument:@&quot;test&quot;];  @endcode  *\/ @interface QHExample : NSObject <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/f44\/d07\/e68\/f44d07e682fd49af7bdf5b3573914a7f.png\"\/><\/p>\n<h6>4)<\/h6>\n<p>  \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432:  <\/p>\n<pre><code class=\"objectivec\">\/\/\/ Description for exampleProperty. @property (nonatomic) int exampleProperty; <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/9b6\/234\/267\/9b6234267e2ea5a39f8ecc86db6d1967.png\"\/><\/p>\n<h6>5)<\/h6>\n<p>  Deprecated \u043c\u0435\u0442\u043e\u0434\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438:  <\/p>\n<pre><code class=\"objectivec\">\/**  This method is deprecated!    @see '-anotherMethod'  *\/ - (void)someMethod __attribute__((deprecated(&quot;use '-anotherMethod' instead.&quot;))); <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/0c2\/229\/ffd\/0c2229ffdb2a1a8cd2a0401bf0c71c6c.png\"\/><\/p>\n<h6>6)<\/h6>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u043e\u0436\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f:  <\/p>\n<pre><code class=\"objectivec\">\/**  A function that always returns 42.    @param fArg Some float argument.    @return 42.  *\/ int function_42(float fArg); <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/280\/62c\/e85\/28062ce8518706bd735d252f45ae1864.png\"\/><br \/>  \u0410 \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u2014 \u043d\u0435\u0442.<\/p>\n<h6>7)<\/h6>\n<p>  \u0415\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 <code>enum<\/code>:  <\/p>\n<pre><code class=\"objectivec\">\/**  ROUChunkType description.  *\/ enum ROUChunkType {     \/\/\/ Data chunk.     ROUChunkTypeData = 0,     \/\/\/ Acknowledgement chunk.     ROUCHunkTypeAck = 1 }; <\/code><\/pre>\n<p>  \u041d\u043e \u043d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 <a href=\"http:\/\/nshipster.com\/ns_enum-ns_options\/\">\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0445<\/a> <code>NS_ENUM<\/code> \u0438 <code>NS_OPTIONS<\/code>.<br \/>  \u0422.\u0435. \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c:  <\/p>\n<pre><code class=\"objectivec\">\/**  ROUChunkType description.  *\/ typedef NS_ENUM(uint8_t, ROUChunkType){     \/\/\/ Data chunk.     ROUChunkTypeData = 0,     \/\/\/ Acknowledgement chunk.     ROUCHunkTypeAck = 1 }; <\/code><\/pre>\n<p>  \u0442\u043e \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432 Quick Help \u0438 \u0432 \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u043d\u043e \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0438\u043f\u0430 <code>ROUChunkType<\/code> \u2014 \u043d\u0435\u0442.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/7a7\/858\/0d4\/7a78580d4271f5355f51023a73925d27.png\"\/><\/p>\n<h6>8)<\/h6>\n<p>  \u0414\u043b\u044f \u0442\u0438\u043f\u043e\u0432-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0448\u0435: \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u043d\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432 \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438, \u043d\u043e \u0432 Quick Help \u0435\u0441\u0442\u044c, \u0434\u043b\u044f \u043f\u043e\u043b\u0435\u0439 \u0435\u0441\u0442\u044c \u0438 \u0442\u043e \u0438 \u0442\u043e.  <\/p>\n<pre><code class=\"objectivec\">\/**  Chunk header description.  *\/ typedef struct {     \/\/\/ Chunk type.     enum ROUChunkType type;     \/\/\/ Chunk length.     uint16_t length; } ROUChunkHeader; <\/code><\/pre>\n<h6>9)<\/h6>\n<p>  \u0417\u0430\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u0442\u0438\u043f\u043e\u0432-\u0431\u043b\u043e\u043a\u043e\u0432:  <\/p>\n<pre><code class=\"objectivec\">\/**  A block with one argument returning BOOL.    @param arg Block's argument.    @return YES.  *\/ typedef BOOL (^QHBlock)(id arg); <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/847\/e8e\/5ea\/847e8e5ea8c846f64183638dad011ce1.png\"\/><\/p>\n<h6>10)<\/h6>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435, \u043d\u043e \u0438 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445:  <\/p>\n<pre><code class=\"objectivec\">- (double)perimeter{     \/\/\/ The number \u03c0, the ratio of a circle's circumference to its diameter.     double pi = M_PI;          return 2 * pi * self.r; } <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/983\/3f6\/070\/9833f60708b3a94eaf524c0aa25cdd76.png\"\/><\/p>\n<h5>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h5>\n<p>  \u0418\u0442\u043e\u0433\u043e, \u0441\u0442\u0430\u043b\u043e \u043d\u0430 \u043e\u0434\u043d\u0443 \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u044d\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0442\u0440\u0443\u0434\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u043d\u043e, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/nshipster.com\/xcode-snippets\/\">code snippets<\/a>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043d\u0438\u043f\u043f\u0435\u0442:  <\/p>\n<pre><code class=\"objectivec\">\/**  &lt;#Brief#&gt;    &lt;#Description#&gt;    @param &lt;#Name#&gt; &lt;#Info#&gt;  @param &lt;#Name#&gt; &lt;#Info#&gt;    @return &lt;#Returns#&gt;  *\/ <\/code><\/pre>\n<p>  \u0438 \u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0448\u043e\u0440\u0442\u043a\u0430\u0442 <code>docmethod<\/code>:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/17c\/d63\/0df\/17cd630df9bf67aa19ee22a89f2580f0.png\"\/><br \/>  \u0422\u043e\u0433\u0434\u0430 \u043f\u0440\u0438 \u043d\u0430\u0431\u043e\u0440\u0435 <code>docmethod<\/code> \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/192310\/\"> http:\/\/habrahabr.ru\/post\/192310\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \tQuick Help \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0431\u0440\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u0438\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/7f1\/1f6\/e18\/7f11f6e18695af4704860b949e06ec96.png\"\/>  <\/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-192310","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192310","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=192310"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192310\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}