{"id":1095,"date":"2015-02-10T13:54:36","date_gmt":"2015-02-10T13:54:36","guid":{"rendered":"http:\/\/bestkora.com\/IosDeveloper\/?p=1095"},"modified":"2015-10-26T09:12:52","modified_gmt":"2015-10-26T09:12:52","slug":"lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1","status":"publish","type":"post","link":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/","title":{"rendered":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 &#8212; \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1)"},"content":{"rendered":"<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.59.46-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-622 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.59.46-PM.png\" alt=\"Title iOS 8\" width=\"1750\" height=\"976\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.59.46-PM.png 1750w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.59.46-PM-300x167.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.59.46-PM-1024x571.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.59.46-PM-500x279.png 500w\" sizes=\"auto, (max-width: 1750px) 100vw, 1750px\" \/><\/a><\/p>\n<p><b>STANFORD UNIVERSITY: \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u00a0<\/b><b>iOS 8<\/b><b>\u00a0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift CS193P<\/b><\/p>\n<h2><strong><strong>\u00a0<\/strong><\/strong>\u041b\u0435\u043a\u0446\u0438\u044f 4: \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks<\/h2>\n<h2>\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u043e\u0440 \u041f\u043e\u043b \u0425\u044d\u0433\u0430\u0440\u0442\u0438 (Paul Hegarty)<\/h2>\n<p>\u041b\u0435\u043a\u0446\u0438\u044e \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0438 \u0441\u043b\u0430\u0439\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u00a0<strong>\u00a0<a title=\"Developing iOS 8 Apps for iPhone and iPad @ iTunes\" href=\"https:\/\/itunes.apple.com\/us\/course\/developing-ios-8-apps-swift\/id961180099\" target=\"_blank\">iTunes \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u00a0\u201c4. More Swift and Foundation Frameworks\u201d<\/a>.<\/strong><\/p>\n<p>\u0420\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043b\u0435\u043a\u0446\u0438\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043d\u0438\u0436\u0435.<\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0447\u0438\u0442\u0430\u0442\u044c PDF-\u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e\u00a0<strong>offline<\/strong><\/p>\n<p><span class=\"gdm-drivefile-embed\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ssl.gstatic.com\/docs\/doclist\/images\/icon_12_pdf_list.png\" width=\"16\" height=\"16\" \/> <a href=\"https:\/\/drive.google.com\/file\/d\/0B0jZOSo2e4NmR3l0a0xaOUtHZU0\/view?usp=drivesdk\" target=\"&quot;_blank&quot;\">\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 iOS 8.pdf<\/a><\/span><\/p>\n<p><b>\u041d\u0430\u0447\u0430\u043b\u043e: 1 &#8212; \u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043b\u0435\u043a\u0446\u0438\u0438 (0 &#8212; 37 \u043c\u0438\u043d\u0443\u0442)<a href=\"https:\/\/github.com\/BestKora\/Calculator-cs193p-2015\/tree\/Lecture2\/1\">.<\/a><\/b><br \/>\n<b>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435: 2 &#8212; \u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043b\u0435\u043a\u0446\u0438\u0438 (37 \u043c\u0438\u043d\u0443\u0442\u0430 &#8212; \u043a\u043e\u043d\u0435\u0446 ) &#8212; \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <a title=\"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 \u2014 \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 2. AnyObject, as?, is, String.Index)\" href=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-2\/\">\u0437\u0434\u0435\u0441\u044c.<\/a><\/b><\/p>\n<p>\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043b\u0435\u043a\u0446\u0438\u044e 4 CS193p, Stanford Winter of 2015.<\/p>\n<p>\u0414\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b, \u043d\u043e \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0431\u0443\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0430\u0439\u0434\u044b. \u042f \u0434\u043e\u043b\u0436\u0435\u043d \u043c\u043d\u043e\u0433\u043e\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0432\u0441\u0435, \u0447\u0442\u043e \u0432\u0430\u043c \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u0417\u0430\u0434\u0430\u043d\u0438\u044f\u0445 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f ( Reading Assignments), \u043d\u043e \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0441\u0432\u0435\u0442\u0438\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0435 \u0442\u0435\u043c\u044b, \u0430 \u043a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432\u00a0\u0417\u0430\u0434\u0430\u043d\u0438\u044f\u0445 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f ( Reading Assignments) \u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u043d\u0430\u0442\u044c. \u042d\u0442\u043e \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0437\u0430\u043c\u0435\u0449\u0430\u0435\u0442 \u0447\u0442\u0435\u043d\u0438\u044f, \u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u0444\u043e\u043a\u0443\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0442\u0435\u043c\u0430\u0445.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.28.04-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1099 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.28.04-PM.png\" alt=\"Screen Shot 2015-02-10 at 6.28.04 PM\" width=\"1496\" height=\"836\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.28.04-PM.png 1496w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.28.04-PM-300x168.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.28.04-PM-1024x572.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.28.04-PM-500x279.png 500w\" sizes=\"auto, (max-width: 1496px) 100vw, 1496px\" \/><\/a><\/p>\n<p><!--more-->\u042f \u0445\u043e\u0447\u0443 \u043d\u0430\u0447\u0430\u0442\u044c \u0441 <span style=\"color: #0000ff;\"><strong>Optional<\/strong><\/span>s \u00a0\u0438 <strong><span style=\"color: #0000ff;\">enum<\/span><\/strong>s, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u00a0<strong><span style=\"color: #0000ff;\">enum<\/span><\/strong>. \u0427\u0442\u043e \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 <span style=\"color: #0000ff;\"><strong>Optional<\/strong><\/span> ?<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.33.15-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1100 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.33.15-PM.png\" alt=\"Screen Shot 2015-02-10 at 6.33.15 PM\" width=\"1478\" height=\"834\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.33.15-PM.png 1478w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.33.15-PM-300x169.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.33.15-PM-1024x578.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-6.33.15-PM-500x282.png 500w\" sizes=\"auto, (max-width: 1478px) 100vw, 1478px\" \/><\/a><\/p>\n<p><span style=\"color: #0000ff;\"><strong>Optional <\/strong><\/span>&#8212; \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 <strong><span style=\"color: #0000ff;\">enum<\/span><\/strong>,\u00a0<strong><span style=\"color: #000000;\">generic<\/span><\/strong> \u0442\u0438\u043f\u0430 \u043a\u0430\u043a <strong><span style=\"color: #0000ff;\">Array &lt;T&gt;<\/span><\/strong>. \u0423 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432, \u0438 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0442\u0438\u043f \u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 &#8212; &lt;<span style=\"color: #0000ff;\"><strong>T<\/strong><\/span>&gt;. \u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438 <span style=\"color: #0000ff;\"><strong>Optional\u00a0<\/strong><\/span>&#8212; \u00a0\u043e\u043d\u00a0<strong>generic<\/strong>. \u0412\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0435 \u0442\u0438\u043f\u00a0\u00a0&lt;<span style=\"color: #0000ff;\"><strong>T<\/strong><\/span>&gt;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0438\u043f\u043e\u043c \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043d\u0443, \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0443 <strong><span style=\"color: #0000ff;\">enum \u00a0<\/span><\/strong>\u0435\u0441\u0442\u044c \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0438\u043f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 <strong><span style=\"color: #0000ff;\">Optional<\/span>\u00a0<\/strong>, \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u043d\u0435\u00a0<strong><span style=\"color: #0000ff;\">nil<\/span><\/strong>. \u041d\u0430 \u0441\u043b\u0430\u0439\u0434\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u043b, \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 <strong><span style=\"color: #0000ff;\">Optional<\/span>\u00a0<\/strong>\u0442\u0438\u043f\u044b, \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong><span style=\"color: #0000ff;\">enum\u00a0<\/span><\/strong>\u043d\u043e\u0442\u0430\u0446\u0438\u044e \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f <strong><span style=\"color: #0000ff;\">Optional<\/span><\/strong>.<\/p>\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435\u00a0<strong><span style=\"color: #0000ff;\">Optional<\/span>\u00a0<\/strong>\u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442. \u0417\u043d\u0430\u043a <strong><span style=\"color: #0000ff;\">?<\/span><\/strong> \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u0438 \u0437\u043d\u0430\u043a <span style=\"color: #0000ff;\"><strong>! <\/strong><\/span>\u0432\u043e\u0441\u043a\u043b\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u0435\u043b\u0430\u044e\u0442 \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u043c, \u043d\u043e \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e &#171;\u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0430\u0445\u0430\u0440&#187; \u0434\u043b\u044f <strong><span style=\"color: #0000ff;\">Optional<\/span><\/strong>.<\/p>\n<p>\u0420\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u0435 <strong><span style=\"color: #0000ff;\">Optional <\/span><\/strong>\u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <strong>switch<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 <strong><span style=\"color: #0000ff;\">Some<\/span><\/strong> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0430\u043c\u0443 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443, \u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 <strong><span style=\"color: #0000ff;\">None<\/span><\/strong> &#8212; \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f. \u0412\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u043e\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (crash), \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0447\u0442\u043e-\u0442\u043e, \u0447\u0442\u043e \u0440\u0430\u0432\u043d\u043e <strong><span style=\"color: #0000ff;\">nil<\/span><\/strong>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c <strong><span style=\"color: #0000ff;\">Array<\/span><\/strong>. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0441 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u00a0\u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 \u0441 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u043c\u0438 \u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-9.03.25-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1113 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-9.03.25-PM.png\" alt=\"Screen Shot 2015-02-10 at 9.03.25 PM\" width=\"1408\" height=\"732\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-9.03.25-PM.png 1408w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-9.03.25-PM-300x156.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-9.03.25-PM-1024x532.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-10-at-9.03.25-PM-500x260.png 500w\" sizes=\"auto, (max-width: 1408px) 100vw, 1408px\" \/><\/a><\/p>\n<p>[js]<br \/>\nlet animal = [&quot;Giraffe&quot;, &quot;Cow&quot;, &quot;Doggie&quot;, &quot;Bird&quot;]<br \/>\n[\/js]<\/p>\n<p>\u0412\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 <strong><span style=\"color: #0000ff;\">Array<\/span> animal,\u00a0<\/strong>\u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u043a\u0430\u043a<span style=\"color: #800080;\"><strong> let<\/strong><\/span>, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u043d &#8212; \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0438\u0442\u0435 \u00a0<span style=\"color: #0000ff;\"><strong>let &#8230; = [ &#8230;] <\/strong><\/span>, \u0430 \u043d\u0435 <span style=\"color: #0000ff;\"><strong>var &#8230; = [&#8230;]<\/strong><\/span>, \u0442\u043e \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 (immutable), \u0438 \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c, \u043d\u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c, \u043d\u0438 \u0435\u0449\u0435 \u0447\u0442\u043e-\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c (\u00a0mutable) \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c.<\/p>\n<p>\u0418, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0432\u044b\u043d\u0443\u0442\u044c \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u0438\u043d\u0434\u0435\u043a\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 &#8212; \u0443 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u0436\u0438\u0432\u043e\u0442\u043d\u044b\u0445, \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u044f\u0442\u043e\u0435, &#8212; \u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u043e\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u042d\u0442\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e \u0432\u0441\u0435\u0445 \u044f\u0437\u044b\u043a\u0430\u0445.<\/p>\n<p>\u041a\u0430\u043a \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u0430?<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/p>\n<p>[js]<br \/>\nfor animal in animals {<br \/>\n .  .  .  .  .  .<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>animal<\/code>. \u042f \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b \u0441\u044e\u0434\u0430 \u044d\u0442\u043e \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043b\u0430\u0439\u0434\u043e\u043c, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0441\u043b\u043e\u0432\u0430\u0440\u0438 Dictionary.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-8.07.06-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1171 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-8.07.06-PM.png\" alt=\"Screen Shot 2015-02-12 at 8.07.06 PM\" width=\"1460\" height=\"846\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-8.07.06-PM.png 1460w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-8.07.06-PM-300x174.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-8.07.06-PM-1024x593.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-8.07.06-PM-500x290.png 500w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><\/a><\/p>\n<p>\u0418 \u043e\u043f\u044f\u0442\u044c, \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438 <strong><span style=\"color: #0000ff;\">Array<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">,\u00a0<\/span><\/span>\u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u0430:<\/p>\n<ul>\n<li>c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u043c\u0438 \u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438 \u0438<\/li>\n<li>\u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c <strong><span style=\"color: #0000ff;\">Dictionary<\/span><\/strong> \u0438 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438.<\/li>\n<\/ul>\n<p>\u041e\u043d\u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f <span style=\"color: #0000ff;\"><strong>Dictionary<\/strong>.<\/span>\u00a0\u0414\u043b\u044f \u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0441 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u043c\u0438 \u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435 \u0442\u0438\u043f \u043a\u043b\u044e\u0447\u0430 \u0438 \u0442\u0438\u043f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u0441\u043b\u043e\u0432\u0430\u0440\u044f, \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043a\u0430\u0445 \u043a\u043b\u044e\u0447, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u00a0<strong>O<\/strong><strong>ptional<\/strong> \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f<\/p>\n<p>[js]<br \/>\nlet ranking = pac10teamRankings [&quot;Ohio Atate&quot;]<br \/>\n[\/js]<\/p>\n<p><strong><span style=\"color: #0000ff;\">ranking<\/span><\/strong> \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d <strong><span style=\"color: #993366;\">nil<\/span><\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435 <strong><span style=\"color: #0000ff;\">pac10teamRanking<\/span><\/strong>\u00a0 \u043d\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b &#171;Ohio State&#187;. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0432\u044b \u0447\u0442\u043e-\u0442\u043e \u0438\u0449\u0438\u0442\u0435 \u0432 <strong><span style=\"color: #0000ff;\">Dictionary<\/span><\/strong>, \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f\u00a0<strong>Optional<\/strong>.<br \/>\n\u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 <strong><span style=\"color: #0000ff;\">Dictionary <\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043e\u0440\u0442\u0435\u0436<\/span><\/span><span style=\"color: #000000;\">\u00a0<\/span>\u00a0(tuple), \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 \u043a\u043b\u044e\u0447\u0430 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/p>\n<p>[js]<br \/>\nfor (key, value) in pac10teamRankings {<br \/>\n           println (&quot;\\(key) = \\(value)&quot;)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u0438\u0439 \u043f\u0443\u0442\u044c \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\u00a0<strong><span style=\"color: #0000ff;\">Dictionary<\/span><\/strong>.<\/p>\n<p>\u042f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0443\u0447\u0438\u0442\u044c \u0432\u0430\u0441 \u043d\u043e\u0432\u044b\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b \u0435\u0449\u0435 \u043d\u0435 \u0432\u0438\u0434\u0435\u043b\u0438. \u042d\u0442\u043e <strong><span style=\"color: #0000ff;\">Range<\/span><\/strong>.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-9.34.58-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1173 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-9.34.58-PM.png\" alt=\"Screen Shot 2015-02-12 at 9.34.58 PM\" width=\"1474\" height=\"848\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-9.34.58-PM.png 1474w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-9.34.58-PM-300x173.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-9.34.58-PM-1024x589.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-12-at-9.34.58-PM-500x288.png 500w\" sizes=\"auto, (max-width: 1474px) 100vw, 1474px\" \/><\/a><\/p>\n<hr \/>\n<h1>Range<\/h1>\n<p><strong><span style=\"color: #0000ff;\">Range\u00a0<\/span><\/strong>\u0432 Swift &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 &#171;\u0440\u0430\u0437\u0443\u043c\u043d\u043e\u0433\u043e&#187; \u0442\u0438\u043f\u0430 (\u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c)<br \/>\n<strong><span style=\"color: #0000ff;\">Range<\/span><\/strong> &#8212; generic (\u043e\u0431\u043e\u0431\u0449\u0435\u043d\u043d\u044b\u0439), \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440<strong><span style=\"color: #0000ff;\"> Range &lt;T&gt;<\/span><\/strong><br \/>\n\u042d\u0442\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u043f\u0441\u0435\u0432\u0434\u043e-\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 Range :<\/p>\n<p>[js]<br \/>\nstruct Range &lt;T&gt; {<br \/>\n  var startIndex: T<br \/>\n  var endIndex:T<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043c\u0430\u0441\u0441\u0438\u0432\u0430 <strong><span style=\"color: #0000ff;\">Array<\/span><\/strong> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c <strong><span style=\"color: #0000ff;\">Range &lt;Int&gt;<\/span><\/strong> (\u0442\u0430\u043a \u043a\u0430\u043a \u00a0\u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e<span style=\"color: #0000ff;\"> <strong>Int<\/strong><\/span>)<br \/>\n<span style=\"text-decoration: underline;\"><em>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435<\/em><\/span>. \u041f\u043e\u0434\u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d <strong><span style=\"color: #0000ff;\">String<\/span>\u00a0<\/strong>\u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong><span style=\"color: #0000ff;\">Range &lt;Int&gt;\u00a0<\/span><\/strong>(\u044d\u0442\u043e \u00a0<strong><span style=\"color: #0000ff;\">Range &lt;String.Index&gt;<\/span>\u00a0<\/strong>\u043d\u043e &#8230; \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u043e\u0437\u0436\u0435)<br \/>\n\u0415\u0441\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f <strong><span style=\"color: #0000ff;\">Range<\/span><\/strong>:<br \/>\n\u043b\u0438\u0431\u043e<strong><span style=\"color: #0000ff;\"> &#8230;<\/span> <\/strong>(\u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u043e\u0431\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f), \u043b\u0438\u0431\u043e <strong><span style=\"color: #0000ff;\">..&lt;<\/span> <\/strong>(c \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435\u0439 &#8212; \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0432\u0430\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430, \u043f\u0440\u0430\u0432\u0430\u044f \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f )<\/p>\n<p>[js]<br \/>\nlet array = [&quot;a&quot;, &quot;b&quot;,&quot;c&quot;,&quot;d&quot;]<br \/>\nlet subArray1 = array [2&#8230;3]  \/\/ subArray1 \u0431\u0443\u0434\u0435\u0442 [&quot;c&quot;,&quot;d&quot;]<br \/>\nlet subArray2 = array [2..&lt;3]  \/\/ subArray2 \u0431\u0443\u0434\u0435\u0442 [&quot;c&quot;]<br \/>\nfor i in 27&#8230;104 {} \/\/ Range &#8212; \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0439, \u043a\u0430\u043a \u0438 Array, String,<br \/>\nDictionary<br \/>\n[\/js]<\/p>\n<hr \/>\n<p>\u042f \u043f\u0440\u0438\u0432\u0435\u043b \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u043e\u0431\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <strong><span style=\"color: #0000ff;\">Range<\/span><\/strong>, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0430\u00a0<strong><span style=\"color: #0000ff;\">Range<\/span><\/strong>. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <strong><span style=\"color: #0000ff;\">startIndex<\/span><\/strong> \u00a0\u0438 <strong><span style=\"color: #0000ff;\">endIndex<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\"> \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u044d\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<\/span><\/span><\/p>\n<p>\u0422\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u0438 \u0441 \u00a0<strong><span style=\"color: #0000ff;\">Array<\/span><\/strong> \u0438 <strong><span style=\"color: #0000ff;\">Dictionary<\/span> <\/strong>\u043c\u044b \u0432 99 % \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u00a0<strong><span style=\"color: #0000ff;\">Range&lt;Int&gt;<\/span><\/strong>, \u0430 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, \u0438 \u0434\u043b\u044f <strong><span style=\"color: #0000ff;\">Range\u00a0<\/span><\/strong>\u044d\u0442\u043e\u00a0<strong><span style=\"color: #0000ff;\">. . .<\/span><\/strong> \u0438\u043b\u0438 <strong><span style=\"color: #0000ff;\">. . &lt;<\/span><\/strong>. \u041d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u00a0<strong><span style=\"color: #0000ff;\">Range&lt;T&gt;<\/span><\/strong><span style=\"color: #000000;\">. \u042d\u0442\u043e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b\u0435 \u0432\u0435\u0449\u0438. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u043a\u0430\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u043b\u044e\u0431\u043e\u043c \u0432\u0438\u0434\u0435.\u00a0<\/span><\/p>\n<p>\u041d\u043e \u0434\u0440\u0443\u0433\u0430\u044f \u0432\u0435\u0449\u044c \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u043d\u0430\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0447\u0435\u0433\u043e \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <strong><span style=\"color: #0000ff;\">Range&lt;Int&gt;<\/span><\/strong>. \u00a0\u041d\u043e \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 : \u0432\u043c\u0435\u0441\u0442\u043e <strong><span style=\"color: #0000ff;\">Int<\/span><\/strong> \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c\u00a0<strong><span style=\"color: #0000ff;\">String.Index<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">. \u0418 \u0442\u0430\u043a\u043e\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c, \u0442\u0430\u043a \u043a\u0430\u043a <strong><span style=\"color: #0000ff;\">String.Index<\/span>\u00a0<\/strong>\u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0438\u0437 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0445 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u043e\u0432. \u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0438 \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e\u0431 \u044d\u0442\u043e\u043c \u0433\u0434\u0435-\u0442\u043e \u0447\u0435\u0440\u0435\u0437 10 \u0441\u043b\u0430\u0439\u0434\u043e\u0432.\u00a0<\/span><\/span><\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0442\u044c <strong><span style=\"color: #0000ff;\">Range<\/span><\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e <span style=\"color: #800080;\"><strong>\u00a0for in<\/strong> <\/span>\u043a\u0430\u043a \u043c\u044b \u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u0432 <strong><span style=\"color: #0000ff;\">Array<\/span><\/strong> \u0438<strong><span style=\"color: #0000ff;\"> Dictionary<\/span><\/strong>.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u043f\u043e\u043c\u0438\u043c\u043e<strong>\u00a0<span style=\"color: #0000ff;\">Array<\/span><\/strong>,<strong><span style=\"color: #0000ff;\">\u00a0Dictionary<\/span><\/strong>\u00a0\u0438 <strong><span style=\"color: #0000ff;\">Range<\/span><\/strong>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <strong><span style=\"color: #0000ff;\">NSObject.<\/span><\/strong><br \/>\n<a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-4.04.48-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1186 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-4.04.48-PM.png\" alt=\"Screen Shot 2015-02-13 at 4.04.48 PM\" width=\"1472\" height=\"858\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-4.04.48-PM.png 1472w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-4.04.48-PM-300x175.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-4.04.48-PM-1024x597.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-4.04.48-PM-500x291.png 500w\" sizes=\"auto, (max-width: 1472px) 100vw, 1472px\" \/><\/a><\/p>\n<hr \/>\n<h1>\u0414\u0440\u0443\u0433\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u044b<\/h1>\n<ul>\n<li><strong>NSObject<\/strong><br \/>\n\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 Objective-C \u043a\u043b\u0430\u0441\u0441\u043e\u0432.<br \/>\n\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0432\u0430\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f subclass \u043e\u0442 NSObject<\/li>\n<li><strong>NSNumber<\/strong><br \/>\nGeneric \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u0447\u0438\u0441\u0435\u043b<\/p>\n<p>[js]<br \/>\nlet n = NSNumber (35.5)<br \/>\nlet intversion = n.IntValue \/\/ \u0442\u0430\u043a\u0436\u0435 doubleValue, boolValue \u0438 \u0442.\u0434.<br \/>\n[\/js]<\/p>\n<\/li>\n<li><strong>NSDate<\/strong><br \/>\n\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0434\u0430\u0442\u044b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u043b\u0438 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e<br \/>\n\u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b <strong>NSCalendar<\/strong>, <strong>NSDateFormatter<\/strong>, <strong>NSDateComponents<\/strong><br \/>\n\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0435 \u0434\u0430\u0442\u0443 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c UI, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u0443\u0436\u043d\u043e \u0438\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c !<\/li>\n<li>\u00a0 <strong>NSData<\/strong><br \/>\n&#171;\u0421\u0443\u043c\u043a\u0430&#187; \u0441 \u0431\u0438\u0442\u0430\u043c\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \/ \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \/ \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 &#171;\u0441\u044b\u0440\u044b\u0445&#187; \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 iOS SDK<\/li>\n<\/ul>\n<p>\u041d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0432\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0430\u0448 Swift \u043a\u043b\u0430\u0441\u0441 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u043e\u043c\u00a0<span style=\"color: #0000ff;\"><strong>NSObject<\/strong><\/span>, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c<strong><span style=\"color: #0000ff;\"> \u0421alculatorBrain<\/span> <\/strong>\u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u043e\u043c (subclass) <span style=\"color: #0000ff;\"><strong>NSObject<\/strong><\/span>. \u0418 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u0438\u0437\u0443\u0447\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 iOS, \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043d\u0430\u0448\u0438\u043c <span style=\"color: #0000ff;\"><strong>CalculatorBrain<\/strong><\/span>. \u0420\u0430\u043d\u044c\u0448\u0435 \u00a0\u0432 Objective-C \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438 \u043e\u0442 \u00a0<span style=\"color: #0000ff;\"><strong>NSObject<\/strong><\/span>, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a\u00a0<span style=\"color: #0000ff;\"><strong>UIViewController<\/strong><\/span> \u0438 \u0432\u0441\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432 \u043e\u0442 <span style=\"color: #0000ff;\"><strong>NSObject<\/strong><\/span>. \u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c, \u0432 Swift <span style=\"color: #0000ff;\"><strong>NSObject<\/strong><\/span> \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435\u00a0\u0442\u0430\u043a\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.<br \/>\n\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043a\u0440\u0430\u0442\u043a\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c\u00a0<span style=\"color: #0000ff;\"><strong>NSNumber<\/strong><\/span>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u044b \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 &#171;\u0432 \u0434\u0435\u043b\u0435&#187;. \u042d\u0442\u043e<br \/>\ngeneric \u043a\u043b\u0430\u0441\u0441, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0447\u0438\u0441\u043b\u0430, \u0438 \u0435\u0441\u0442\u044c \u0442\u043e\u043d\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u044d\u0442\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u0430\u043a\u00a0\u00a0<strong><span style=\"color: #0000ff;\">doubleValue<\/span><\/strong>, <strong><span style=\"color: #0000ff;\">intValue<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u044e\u0442 \u043c\u043d\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0447\u0435\u0433\u043e-\u0442\u043e \u043a\u0430\u043a<strong><span style=\"color: #0000ff;\"> Int<\/span><\/strong>, \u043a\u0430\u043a<strong><span style=\"color: #0000ff;\"> Double \u00a0<\/span><\/strong>\u0438 \u0442.\u0434. \u0412\u00a0\u00a0Swift \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043e\u0447\u0435\u043d\u044c \u0447\u0430\u0441\u0442\u043e, \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432 Swift \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0440\u043e\u0433\u043e \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u0438 \u043c\u044b \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u0438\u043f\u044b<span style=\"color: #0000ff;\"><strong> Int<\/strong><\/span> \u0438 <span style=\"color: #0000ff;\"><strong>Double<\/strong>.<\/span> \u00a0\u041d\u043e \u0432\u00a0Objective-C APIs \u043d\u0435\u0442\u00a0<strong><span style=\"color: #0000ff;\">NSNumber<\/span><\/strong>s \u00a0\u0438 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u043d\u0430\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0437\u0436\u0435 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0441\u044c \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0442\u043e\u043c \u0444\u0430\u043a\u0442\u0435, \u0447\u0442\u043e \u0432\u0441\u0435 \u0442\u0438\u043f\u044b Swift &#171;\u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438&#187; \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u043c\u043e\u0441\u0442\u0438\u043a\u043e\u043c (bridged) \u0441\u00a0\u00a0<strong><span style=\"color: #0000ff;\">NSNumber<\/span><\/strong>, \u0432\u0441\u0435 \u044d\u0442\u0438 <strong><span style=\"color: #0000ff;\">Int<\/span><\/strong>s \u0438 <strong><span style=\"color: #0000ff;\">Double<\/span><\/strong>s. \u0412\u043e\u043e\u0431\u0449\u0435 \u0432\u044b \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u044c\u0441\u044f \u043e\u00a0<strong><span style=\"color: #0000ff;\">\u00a0NSNumber<\/span><\/strong> \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435<strong><span style=\"color: #0000ff;\">\u00a0NSNumberFormatter<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0434\u043b\u044f \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0447\u0435\u0433\u043e-\u0442\u043e \u043a\u0430\u043a\u00a0<strong><span style=\"color: #0000ff;\">NSNumber<\/span><\/strong>.<\/p>\n<p>\u0412\u041e\u041f\u0420\u041e\u0421: \u00a0\u041c\u043e\u0433\u0443 \u043b\u0438 \u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u00a0Swift \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438?<br \/>\n\u041e\u0422\u0412\u0415\u0422: \u041c\u044b \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043f\u043e\u0437\u0436\u0435.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 <strong><span style=\"color: #0000ff;\">NSDate<\/span><\/strong>, \u0434\u0435\u043b\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0442\u043e, \u043a\u0430\u043a \u0437\u0432\u0443\u0447\u0438\u0442 \u0435\u0433\u043e \u0438\u043c\u044f: \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0434\u0430\u0442\u044b \u0438 \u0432\u0440\u0435\u043c\u044f \u0442\u043e\u0436\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0434\u0430\u0442\u0443 \u0438 \u0432\u0440\u0435\u043c\u044f. \u0423 \u043d\u0435\u0433\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u041d\u043e \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u043c\u0435\u044e\u0449\u0438\u0445 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a \u044d\u0442\u043e\u043c\u0443 \u043a\u043b\u0430\u0441\u0441\u0443 \u043a\u043b\u0430\u0441\u0441\u0430\u0445: <span style=\"color: #0000ff;\"><strong>NSCalendar<\/strong><\/span>,\u00a0<span style=\"color: #0000ff;\"><strong>NSDateFormatter<\/strong>,\u00a0<strong>NSDateComponents<\/strong>.<\/span>\u00a0\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0435 \u0434\u0430\u0442\u0443 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435, \u043a\u0430\u043a \u043d\u0430 \u0447\u0430\u0441\u0442\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0432\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u00a0\u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0441\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043e \u0434\u0430\u0442\u0430\u0445. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u0430\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u043c\u0438\u0440\u0430. \u0420\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u0438, \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u0438, \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a &#171;\u043c\u0435\u0441\u044f\u0446&#187; &#171;\u0434\u0435\u043d\u044c&#187; &#171;\u0433\u043e\u0434&#187; . \u0412\u044b\u0432\u043e\u0434 \u0434\u0430\u0442\u044b \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043e\u0447\u0435\u043d\u044c \u0445\u0438\u0442\u0440\u043e\u0443\u043c\u043d\u044b\u0439, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u043f\u043e \u043c\u0438\u0440\u0443. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c <strong><span style=\"color: #0000ff;\">NSDate<\/span><\/strong>\u00a0\u0438 \u0435\u0435 \u0434\u0440\u0443\u0437\u0435\u0439.<\/p>\n<p>\u0421\u0443\u043f\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u043b\u0430\u0441\u0441 &#8212;\u00a0\u00a0<strong><span style=\"color: #0000ff;\">NSData<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0433\u0438\u0433\u0430\u043d\u0442\u0441\u043a\u0443\u044e &#171;\u0441\u0443\u043c\u043a\u0443&#187; \u0431\u0438\u0442\u043e\u0432 \u0438\u043b\u0438 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0443\u044e\u00a0&#171;\u0441\u0443\u043c\u043a\u0443&#187; \u0431\u0438\u0442\u043e\u0432. \u042d\u0442\u043e &#8212; \u043d\u0435 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e\u0431 \u044d\u0442\u043e\u043c \u043a\u0430\u043a \u043e\u0431 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435 \u043d\u0430 &#171;\u043f\u0430\u043c\u044f\u0442\u044c&#187;, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435 \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f.<br \/>\n\u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u00a0iOS \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u043f\u043e\u0432\u0441\u044e\u0434\u0443 \u043d\u0435 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 &#171;\u0441\u044b\u0440\u044b\u0435&#187; \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043d\u0430\u0447\u043d\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043b\u0430\u0441\u0441, \u0432\u044b \u043f\u043e\u0439\u043c\u0435\u0442\u0435 \u0447\u0442\u043e \u043a \u0447\u0435\u043c\u0443. \u0412 \u044d\u0442\u043e\u043c \u043a\u0443\u0440\u0441\u0435 \u043c\u044b \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<strong><span style=\"color: #0000ff;\">\u00a0NSData<\/span><\/strong> \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u043c\u0435\u0442\u044c \u0434\u0435\u043b\u043e \u0441\u00a0\u00a0&#171;\u0441\u044b\u0440\u044b\u043c\u0438&#187; \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u044e \u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Swift \u0432 \u0446\u0435\u043b\u043e\u043c. \u0418 \u0442\u0443\u0442 \u0443 \u043d\u0430\u0441 \u0442\u0440\u0438 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0430, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0443\u0442 \u0441\u0442\u0440\u043e\u0438\u0442\u044c\u0441\u044f \u0432\u0430\u0448\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u042d\u0442\u043e\u00a0\u00a0<strong><span style=\"color: #000000;\">class<\/span><\/strong>, <strong>struct<\/strong> \u0438\u00a0<strong>enum<\/strong>.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.44.08-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1191 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.44.08-PM.png\" alt=\"Screen Shot 2015-02-13 at 6.44.08 PM\" width=\"1480\" height=\"852\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.44.08-PM.png 1480w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.44.08-PM-300x173.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.44.08-PM-1024x589.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.44.08-PM-500x288.png 500w\" sizes=\"auto, (max-width: 1480px) 100vw, 1480px\" \/><\/a><\/p>\n<hr \/>\n<h1>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Swift<\/h1>\n<ul>\n<li>\u041a\u043b\u0430\u0441\u0441\u044b, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f<br \/>\n\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 3 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0430 \u0434\u043b\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Swift<\/li>\n<li>\u00a0\u041f\u043e\u0445\u043e\u0436\u0435\u0441\u0442\u044c<br \/>\n\u0421\u0438\u043d\u0442\u0430\u0441\u0438\u0441 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f &#8230;<\/li>\n<\/ul>\n<p>[js]<br \/>\nclass CalculatorBrain {<\/p>\n<p>}<br \/>\nstruct Vertex {<\/p>\n<p>}<br \/>\nenum Op{<\/p>\n<p>}<br \/>\n[\/js]<\/p>\n<hr \/>\n<p>\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043f\u0440\u0438 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u043c \u0441\u043b\u043e\u0432\u0435\u00a0<strong><span style=\"color: #0000ff;\">class<\/span><\/strong>,\u00a0<strong><span style=\"color: #0000ff;\">struct<\/span><\/strong> \u0438\u043b\u0438 <strong><span style=\"color: #0000ff;\">\u00a0enum<\/span><\/strong>, \u0430 \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.54.41-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1192 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.54.41-PM.png\" alt=\"Screen Shot 2015-02-13 at 6.54.41 PM\" width=\"1474\" height=\"840\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.54.41-PM.png 1474w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.54.41-PM-300x171.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.54.41-PM-1024x584.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-6.54.41-PM-500x285.png 500w\" sizes=\"auto, (max-width: 1474px) 100vw, 1474px\" \/><\/a><\/p>\n<p>\u041e\u043d\u0438 \u0442\u0430\u043a\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0412\u0441\u0435 \u0442\u0440\u0438, \u043d\u043e <strong><span style=\"color: #0000ff;\">enum<\/span> <\/strong>\u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 <strong><span style=\"color: #0000ff;\">enum<\/span>\u00a0<\/strong>\u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0432\u0438\u0434\u0435 \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u041d\u043e\u00a0<strong><span style=\"color: #0000ff;\">enum<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">\u00a0\u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 (<\/span><\/span>computed properties).<br \/>\n\u0422\u0430\u043a\u0436\u0435 \u0432\u0441\u0435 \u0442\u0440\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u043e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436\u0438.<\/p>\n<p>\u041e\u043d\u0438 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0445\u043e\u0436\u0438, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 <strong><span style=\"color: #0000ff;\">struc<\/span><\/strong>s \u0438 \u00a0<strong><span style=\"color: #0000ff;\">class<\/span><\/strong>es \u043f\u043e\u0445\u043e\u0436\u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.03.04-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1193 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.03.04-PM.png\" alt=\"Screen Shot 2015-02-13 at 8.03.04 PM\" width=\"1468\" height=\"840\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.03.04-PM.png 1468w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.03.04-PM-300x172.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.03.04-PM-1024x586.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.03.04-PM-500x286.png 500w\" sizes=\"auto, (max-width: 1468px) 100vw, 1468px\" \/><\/a><\/p>\n<p>\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e\u0431 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u0445 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0430\u0439\u0434\u043e\u0432.<\/p>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430 \u0432\u0435\u0449\u0435\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u043d\u0438 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.13.38-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1195 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.13.38-PM.png\" alt=\"Screen Shot 2015-02-13 at 8.13.38 PM\" width=\"1450\" height=\"844\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.13.38-PM.png 1450w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.13.38-PM-300x175.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.13.38-PM-1024x596.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.13.38-PM-500x291.png 500w\" sizes=\"auto, (max-width: 1450px) 100vw, 1450px\" \/><\/a><strong>\u0422\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0430\u0441\u0441\u044b<\/strong> \u0438\u043c\u0435\u044e\u0442<strong> \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 (\u00a0inheritance).<\/strong> \u0418 \u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0435\u043c \u043a\u043b\u0430\u0441\u0441 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f &#8212; \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435. \u0417\u0430\u0442\u0435\u043c \u0438\u043d\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0446\u0438\u044f \u0438 \u043a\u0430\u0441\u0442\u0438\u043d\u0433, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u044e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0437\u0436\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0431\u043b\u0430\u0434\u0430\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0430\u0441\u0441\u044b. \u041d\u0438\u0447\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u00a0\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u043c\u0438.<\/p>\n<p>\u041d\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e<strong><span style=\"color: #0000ff;\"> struct<\/span><\/strong> \u0438 <strong><span style=\"color: #0000ff;\">enum<\/span><\/strong> \u00a0\u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f<strong> &#171;\u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e&#187; (value type)<\/strong>, \u0430<strong><span style=\"color: #0000ff;\"> class<\/span> <\/strong>&#8212; <strong>&#171;\u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435&#187; (reference\u00a0type)<\/strong>. \u041c\u044b \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043b\u0438 \u0432 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435.<br \/>\n<strong><span style=\"color: #0000ff;\">Struct<\/span><\/strong>s \u0438\u00a0<strong><span style=\"color: #0000ff;\">enum<\/span><\/strong>s \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432 Swift \u0438 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u043f\u0443\u0442\u0435\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0410<strong><span style=\"color: #0000ff;\"> classes<\/span> <\/strong>\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u0438\u043f\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u043c\u0438 &#171;\u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435&#187;, \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043d\u0438\u0445, \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0442\u0443\u0434\u0430, \u0433\u0434\u0435 \u043e\u043d\u0438 &#171;\u0436\u0438\u0432\u0443\u0442&#187; \u0432 &#171;\u043a\u0443\u0447\u0435&#187;. \u00a0\u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e &#171;\u043a\u0443\u0447\u0430&#187; \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439, \u0438 &#171;\u043f\u0430\u043c\u044f\u0442\u044c&#187; \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0435\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<br \/>\n\u041c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u044b \u043a\u043e\u0433\u0434\u0430 \u0445\u043e\u0442\u0438\u043c \u0438, \u043a\u043e\u0433\u0434\u0430 \u043d\u0438\u043a\u0442\u043e \u0438\u0445 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442, \u043f\u0430\u043c\u044f\u0442\u044c &#171;\u0432\u044b\u0447\u0438\u0449\u0430\u0435\u0442\u0441\u044f&#187; \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0433\u043e &#171;\u0441\u0431\u043e\u0440\u0430 \u043c\u0443\u0441\u043e\u0440\u0430&#187; (garbage collection). \u0418\u0434\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u0441\u0441\u044b\u043b\u043e\u043a (automatic reference counting).<\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0441\u043b\u0430\u0439\u0434 \u043f\u043e \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e\u00a0\u00a0\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438<strong> &#171;\u043f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e&#187; (value type)<\/strong>\u00a0\u0438 <span style=\"color: #000000;\">\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438<\/span>\u00a0<strong>&#171;\u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435&#187; (reference\u00a0type)<\/strong>.\u00a0\u0418\u043d\u043e\u0433\u0434\u0430 \u043b\u044e\u0434\u0438 \u043f\u0443\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043a\u043e\u0434\u0430, \u0438 \u043e\u043d\u0438 \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0442, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.50.06-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1197 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.50.06-PM.png\" alt=\"Screen Shot 2015-02-13 at 8.50.06 PM\" width=\"1472\" height=\"862\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.50.06-PM.png 1472w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.50.06-PM-300x176.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.50.06-PM-1024x600.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-13-at-8.50.06-PM-500x293.png 500w\" sizes=\"auto, (max-width: 1472px) 100vw, 1472px\" \/><\/a><\/p>\n<hr \/>\n<p><strong>&#171;\u041f\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e&#187; (value type)<\/strong>\u00a0\u0438\u00a0\u00a0<strong>&#171;\u041f\u043e \u0441\u0441\u044b\u043b\u043a\u0435&#187; (reference\u00a0type)<\/strong>.<\/p>\n<ul>\n<li>\n<h2>Value (<strong><span style=\"color: #0000ff;\">struct<\/span><\/strong> \u0438 \u00a0<strong><span style=\"color: #0000ff;\">enum<\/span><\/strong>)<\/h2>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\"><span style=\"text-decoration: underline;\">\u041a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e<\/span><br \/>\n<span style=\"text-decoration: underline;\">\u041a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c<\/span><br \/>\n<span style=\"text-decoration: underline;\">\u041d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 (Immutable), \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441 <strong><span style=\"color: #993366; text-decoration: underline;\">let<\/span><\/strong><\/span><br \/>\n<span style=\"text-decoration: underline;\">\u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c\u0438<\/span><br \/>\n<span style=\"text-decoration: underline;\">\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <strong><span style=\"color: #993366; text-decoration: underline;\">var<\/span><\/strong> \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0438 \u043e\u043d \u0441\u0442\u0430\u043d\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c (mutable), \u043d\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043a\u043e\u043f\u0438\u0435\u0439<\/span><br \/>\n<span style=\"text-decoration: underline;\">\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <strong><span style=\"color: #993366; text-decoration: underline;\">func<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 struct \/ enum, \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c\u00a0<strong><span style=\"color: #800080; text-decoration: underline;\">mutating<\/span><\/strong><\/span><\/p>\n<ul>\n<li>\n<h2>Reference (<span style=\"color: #0000ff;\"><strong><span style=\"color: #0000ff;\">class<\/span><\/strong>)<\/span><\/h2>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\"><span style=\"text-decoration: underline;\">\u0417\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0432 &#171;\u043a\u0443\u0447\u0435&#187; \u0438 \u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u0441\u0441\u044b\u043b\u043e\u043a<\/span><br \/>\n<span style=\"text-decoration: underline;\"> \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 (Immutable) \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u043e\u0433\u0434\u0430<\/span> <span style=\"text-decoration: underline;\">\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <strong><span style=\"color: #993366; text-decoration: underline;\">let,<\/span><\/strong><span style=\"color: #000000; text-decoration: underline;\"> \u0442\u043e<\/span><strong><span style=\"color: #993366; text-decoration: underline;\">\u00a0<\/span><\/strong><span style=\"color: #993366; text-decoration: underline;\"><span style=\"color: #000000; text-decoration: underline;\">\u0432\u044b \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0435 \u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u044b<\/span><\/span><\/span><br \/>\n<span style=\"text-decoration: underline;\"> \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u043f\u0438\u044f \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f (\u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440)<\/span><\/p>\n<ul>\n<li>\n<h2>\u0427\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f?<\/h2>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\"><span style=\"text-decoration: underline;\">\u041e\u0431\u044b\u0447\u043d\u043e \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c <strong><span style=\"color: #0000ff; text-decoration: underline;\">class<\/span><\/strong>, \u0430 \u043d\u0435 <strong><span style=\"color: #0000ff; text-decoration: underline;\">struct<\/span><\/strong>. <strong><span style=\"color: #0000ff; text-decoration: underline;\">struct<\/span><\/strong> \u0441\u0442\u0430\u0440\u0430\u044e\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432.<\/span><br \/>\n<span style=\"text-decoration: underline;\"> \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong><span style=\"color: #0000ff; text-decoration: underline;\">enum<\/span><\/strong> &#8212; \u00a0\u043f\u043e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 (\u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u0438\u043f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438).<\/span><\/p>\n<hr \/>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 <strong>Value Type<\/strong> (<strong><span style=\"color: #0000ff;\">enum<\/span><\/strong> \u0438 <span style=\"color: #0000ff;\"><strong>struc<\/strong>t<\/span>) \u00a0\u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0438\u0442\u0435<\/p>\n<p>[js]<br \/>\nlet y = \u00a0\u0445<br \/>\n[\/js]<\/p>\n<p>\u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043f\u0438\u044f, \u0441\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u043d\u043e\u00a0<strong><span style=\"color: #0000ff;\">lazy<\/span><\/strong> &#171;\u0437\u0430 \u0441\u0446\u0435\u043d\u043e\u0439&#187;, \u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b \u0438\u043c\u0435\u0435\u0442\u0435 \u0434\u0435\u043b\u043e \u0441 \u043a\u043e\u043f\u0438\u0435\u0439. \u0418 \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0430 \u0431\u044b\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439\u00a0(mutable), \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0432<strong><span style=\"color: #993366;\"> va<\/span><\/strong>r\u00a0\u0432\u043c\u0435\u0441\u0442\u043e <strong><span style=\"color: #993366;\">let<\/span><\/strong>, \u0432\u043e\u0442 \u0442\u043e\u0433\u0434\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0435 \u043c\u0435\u043d\u044f\u0442\u044c. \u041d\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0435 \u0432\u044b \u0441\u0432\u043e\u044e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e, \u0430 \u043d\u0435 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f.<br \/>\n\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441\u00a0<strong>Value Type<\/strong>\u00a0(<span style=\"color: #0000ff;\"><strong>enum<\/strong><\/span>\u00a0\u0438\u00a0<span style=\"color: #0000ff;\"><strong>struct<\/strong><span style=\"color: #000000;\">)<\/span><\/span> \u00a0\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u00a0<span style=\"color: #0000ff;\"><strong>enum<\/strong><\/span>\u00a0\u0438\u043b\u0438\u00a0<span style=\"color: #0000ff;\"><strong>struct<\/strong><\/span>\u00a0, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0435\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c\u00a0<strong><span style=\"color: #800080;\">mutating<\/span><\/strong><span style=\"color: #000000;\">. \u042d\u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b\u00a0<\/span>\u00a0Swift \u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u043a\u0442\u043e-\u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u00a0\u00a0<span style=\"color: #0000ff;\"><strong>enum<\/strong><\/span>\u00a0\u0438\u043b\u0438\u00a0<span style=\"color: #0000ff;\"><strong>struct<\/strong><\/span>. \u041d\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f\u00a0<strong><span style=\"color: #993366;\">va<\/span><\/strong>r, \u0430 \u043d\u0435 \u00a0<strong><span style=\"color: #993366;\">let<\/span><\/strong>.<\/p>\n<p>\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441<strong> Reference\u00a0Type<\/strong>\u00a0(<strong><span style=\"color: #0000ff;\">class<\/span><\/strong>) \u00a0\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0432 &#171;\u043a\u0443\u0447\u0435&#187;. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043d\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430<\/p>\n<p>[js]<br \/>\nlet y = \u00a0\u0445<br \/>\n[\/js]<\/p>\n<p>\u0432\u044b \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c <strong><span style=\"color: #0000ff;\">y<\/span><\/strong> \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f , \u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0435 \u0435\u0433\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d \u0432 &#171;\u043a\u0443\u0447\u0435&#187;. \u0418\u0442\u0430\u043a, \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u00a0\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 <strong><span style=\"color: #0000ff;\">y,<\/span> <\/strong>\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435 \u0435\u0433\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430<strong><span style=\"color: #0000ff;\"> y,<\/span><\/strong>\u00a0 \u0438 \u0435\u0441\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u043e\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c, \u0442\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u0430\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435.<\/p>\n<p>\u041a\u0430\u043a\u0443\u044e \u0436\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u044b\u0431\u0440\u0430\u0442\u044c? \u0412 90% \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u00a0<strong><span style=\"color: #0000ff;\">class<\/span><\/strong>. Swift &#8212; \u044f\u0437\u044b\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c (<strong>\u00a0inheritance<\/strong>), \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c (<strong>overriding<\/strong>) \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0432\u0435\u0449\u0438.\u00a0<strong><span style=\"color: #0000ff;\">Struct<\/span><\/strong> \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u00a0<strong><span style=\"color: #0000ff;\">Double<\/span><\/strong>,<strong><span style=\"color: #0000ff;\"> Int<\/span><\/strong>, <strong><span style=\"color: #0000ff;\">Array<\/span><\/strong>, <strong><span style=\"color: #0000ff;\">Dictionaries<\/span><\/strong>, <strong>String.<\/strong> \u042d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b, \u0438 \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u043c, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u043e\u0447\u043a\u0438 (points), \u0440\u0430\u0437\u043c\u0435\u0440\u044b (sizes), \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 (rectangles) &#8212; \u0432\u0441\u0435 \u043e\u043d\u0438<br \/>\n<strong><span style=\"color: #0000ff;\">struct<\/span><\/strong>s. \u0411\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c, &#8212; \u044d\u0442\u043e\u00a0<strong><span style=\"color: #0000ff;\">class<\/span><\/strong>es. \u0418 \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0430\u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0434 <span style=\"color: #0000ff;\"><strong>class<\/strong><\/span>es, \u0442\u043e \u043d\u0435 \u0442\u0430\u043a-\u0442\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u00a0<span style=\"color: #0000ff;\"><strong>class<\/strong><\/span>es.<\/p>\n<p>\u041f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043c\u0435\u0442\u043e\u0434\u0430\u0445.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.21.27-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1206 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.21.27-AM.png\" alt=\"Screen Shot 2015-02-14 at 10.21.27 AM\" width=\"1470\" height=\"832\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.21.27-AM.png 1470w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.21.27-AM-300x170.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.21.27-AM-1024x580.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.21.27-AM-500x283.png 500w\" sizes=\"auto, (max-width: 1470px) 100vw, 1470px\" \/><\/a><\/p>\n<hr \/>\n<h1>\u00a0\u041c\u0435\u0442\u043e\u0434\u044b<\/h1>\n<ul>\n<li><strong>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c (override) \u043c\u0435\u0442\u043e\u0434\u044b \/ \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u0432\u0430\u0448\u0435\u043c superclass\u00a0<\/strong><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">\u041f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u0434<strong><span style=\"color: #0000ff;\"> func<\/span><\/strong> \u0438\u043b\u0438 <strong><span style=\"color: #0000ff;\">var<\/span><\/strong> \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <strong><span style=\"color: #0000ff;\">override<\/span><\/strong><br \/>\n\u041c\u0435\u0442\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043a\u0430\u043a <span style=\"color: #0000ff;\"><strong>final<\/strong>,<\/span> \u0447\u0442\u043e \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 subclasses\u00a0\u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c (override) \u0435\u0433\u043e<br \/>\n\u041a\u043b\u0430\u0441\u0441\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u043a\u0430\u043a<strong>\u00a0<span style=\"color: #0000ff;\">final<\/span><\/strong><span style=\"color: #000000;\">, \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u00a0subclasses<\/span><\/p>\n<ul>\n<li><b>\u041a\u0430\u043a \u0442\u0438\u043f\u044b (types), \u0442\u0430\u043a \u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u0442\u0438\u043f\u0430 (instances) \u00a0\u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \/ \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/b><\/li>\n<\/ul>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c<strong>\u00a0<span style=\"color: #0000ff;\">struct<\/span><span style=\"color: #0000ff;\">\u00a0Double<\/span><\/strong> ( \u0434\u0430,\u00a0<strong><span style=\"color: #0000ff;\">Double<\/span> <\/strong>&#8212; \u044d\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430)<\/p>\n<p>[js]<br \/>\nvar d: Double \u00a0= &#8230;<br \/>\nif d.isSignMinus {<br \/>\n       d = Double.abs (d)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p><strong><span style=\"color: #0000ff;\">isSignMinus<\/span><\/strong> &#8212; \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u00a0<strong><span style=\"color: #0000ff;\">Double, <\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\"><span style=\"color: #ff0000;\"><strong><span style=\"text-decoration: underline;\"><em>instance<\/em><\/span> <\/strong><\/span>property\u00a0<\/span><\/span>. \u0412\u044b \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442\u0435 \u0435\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 <strong><span style=\"color: #0000ff;\">Double<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">.<\/span><\/span><br \/>\n<strong><span style=\"color: #0000ff;\">Double.abs<\/span><\/strong> &#8212; \u043c\u0435\u0442\u043e\u0434 <strong>\u0442\u0438\u043f\u0430<\/strong> (<strong><span style=\"text-decoration: underline; color: #ff0000;\"><em>type<\/em><\/span><\/strong> method)\u00a0<strong><span style=\"color: #0000ff;\">Double<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">.\u0412\u044b \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442\u0435 \u0435\u0433\u043e \u0441\u0430\u043c\u043e\u043c\u0443 <strong>\u0442\u0438\u043f\u0443\u00a0<span style=\"color: #0000ff;\">Double<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">, \u0430 \u043d\u0435\u00a0\u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439\u00a0<strong><span style=\"color: #0000ff;\">Double<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">.<\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n\u0412\u044b \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u0442\u0435 \u043c\u0435\u0442\u043e\u0434 \u0438\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e<strong> \u0442\u0438\u043f\u0430<\/strong> (<span style=\"color: #ff0000;\"><strong><em>type<\/em><\/strong><\/span>\u00a0) c \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 <strong><span style=\"color: #0000ff;\">static<\/span><\/strong> \u0434\u043b\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0438 <strong><span style=\"color: #0000ff;\">class<\/span><\/strong> \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u043e\u0432.<\/p>\n<p>[js]<br \/>\n   static func abs(d: Double) -&gt; Double<br \/>\n[\/js]<\/p>\n<hr \/>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u043e\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f <span style=\"text-decoration: underline;\"><em><strong><span style=\"color: #ff0000; text-decoration: underline;\">\u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u043c (instances)<\/span><\/strong><\/em><\/span>, \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u043c \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0432\u0435\u0449\u0435\u0439, \u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b &#8212; <span style=\"text-decoration: underline;\"><strong><em><span style=\"color: #ff0000; text-decoration: underline;\">\u0442\u0438\u043f\u0430\u043c (types)<\/span><\/em><\/strong><\/span>. \u0414\u0432\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u043d\u0438\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435.<br \/>\n\u0412 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u043b\u043e\u0432\u0430\u00a0<strong><span style=\"color: #0000ff;\">static<\/span><\/strong> \u043c\u044b \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c \u0441\u043b\u043e\u0432\u043e <strong><span style=\"color: #0000ff;\">class<\/span><\/strong>, \u00a0\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u043a\u043b\u0430\u0441\u0441\u0430.<br \/>\n\u042f \u043d\u0435 \u0445\u043e\u0447\u0443 \u0432\u0430\u0441 \u0437\u0430\u043f\u0443\u0442\u044b\u0432\u0430\u0442\u044c, \u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043d\u0430\u0447\u043d\u0435\u0442\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435\u00a0<strong><span style=\"color: #0000ff;\">abs<\/span><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f <span style=\"text-decoration: underline;\"><em><strong><span style=\"color: #ff0000; text-decoration: underline;\">\u0442\u0438\u043f\u0443<\/span><\/strong><\/em><\/span> <strong><span style=\"color: #0000ff;\">Double<\/span><\/strong>, \u00a0\u0442\u043e \u044d\u0442\u043e \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b\u00a0<strong>\u0442\u0438\u043f\u0430<\/strong> \u0430 \u043a\u043e\u0433\u0434\u0430 \u043c\u0435\u0442\u043e\u0434\u044b <strong>\u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430<\/strong> \u044d\u0442\u043e\u0433\u043e \u0442\u0438\u043f\u0430? \u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0443 \u0442\u0438\u043f\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043a\u0430\u043a\u043e\u043c\u0443-\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 <strong><span style=\"color: #0000ff;\">Double<\/span><\/strong>, \u0442\u043e \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 <strong><em><span style=\"text-decoration: underline;\"><span style=\"color: #ff0000; text-decoration: underline;\">\u043c\u0435\u0442\u043e\u0434\u044b \u0442\u0438\u043f\u0430<\/span><\/span><\/em><\/strong><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">. \u0418\u043d\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u0437\u0430\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c\u0438. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 (<\/span><\/span>shared object), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u0446\u0435\u043b\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0432 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0435, \u0438 \u0432\u044b \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0435 \u0435\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0439 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 (shared instance). \u041c\u0435\u0442\u043e\u0434\u044b <strong><em><span style=\"text-decoration: underline;\"><span style=\"color: #ff0000; text-decoration: underline;\">\u0442\u0438\u043f\u0430<\/span> <\/span><\/em><\/strong>&#8212; \u044d\u0442\u043e, \u043e\u0431\u044b\u0447\u043d\u043e, \u043b\u0438\u0431\u043e \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043b\u0438\u0431\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0412\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0438\u0445 \u0432\u00a0\u00a0iOS \u0438 \u0431\u0443\u0434\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u043f\u0440\u0438 \u0441\u043b\u0443\u0447\u0430\u0435. \u0412 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432\u043c\u0435\u0441\u0442\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u0412 Swift \u00a0\u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b, \u0442\u043e \u0435\u0441\u0442\u044c \u00a0\u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441 <strong>\u0442\u0438\u043f\u043e\u043c<\/strong> (type)\u00a0\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \u042d\u0442\u043e<strong><em><span style=\"text-decoration: underline;\"><span style=\"color: #ff0000; text-decoration: underline;\">\u00a0\u00a0type<\/span> <\/span><\/em><\/strong>\u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e\u0431 \u0438\u043c\u0435\u043d\u0430\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u042f \u0434\u0430\u043c \u0432\u0430\u043c \u043a\u0440\u0430\u0442\u043a\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u041d\u043e \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u043f\u0440\u043e\u0447\u0442\u0435\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-5.38.49-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1209 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-5.38.49-PM.png\" alt=\"Screen Shot 2015-02-14 at 5.38.49 PM\" width=\"1574\" height=\"886\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-5.38.49-PM.png 1574w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-5.38.49-PM-300x169.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-5.38.49-PM-1024x576.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-5.38.49-PM-500x281.png 500w\" sizes=\"auto, (max-width: 1574px) 100vw, 1574px\" \/><\/a><\/p>\n<hr \/>\n<h1>\u00a0\u041c\u0435\u0442\u043e\u0434\u044b<\/h1>\n<ul>\n<li><b>\u0418\u043c\u0435\u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432<\/b><\/li>\n<\/ul>\n<p>\u0412\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e \u0432\u0441\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c \u0438\u043c\u0435\u044e\u0442 <strong>\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435<span style=\"color: #35855d;\"> internal<\/span><\/strong> \u0438\u043c\u0435\u043d\u0430 \u0438 <strong>\u0432\u043d\u0435\u0448\u043d\u0438\u0435 <span style=\"color: #ff0000;\">external<\/span><\/strong> \u00a0\u0438\u043c\u0435\u043d\u0430<span style=\"color: #0000ff;\">\u00a0<\/span><br \/>\n\u0412\u0441\u0435<span style=\"color: #35855d;\">\u00a0<strong>internal<\/strong>\u00a0<\/span>\u0438\u043c\u0435\u043d\u0430 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0435\u0442\u043e\u0434\u0430<br \/>\n<span style=\"color: #ff0000;\"><strong>external<\/strong><\/span> \u0438\u043c\u044f &#8212; \u044d\u0442\u043e \u0442\u043e, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u00a0\u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u0430<\/p>\n<p>[js]<br \/>\nfunc foo( external internal: Int) {<br \/>\n          let local = internal<br \/>\n}<br \/>\nfunc bar () {<br \/>\n          let result = foo ( external: 123)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c<strong> _<\/strong>, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u043e\u0441\u044c <span style=\"color: #ff0000;\"><strong>external<\/strong><\/span>\u00a0\u0438\u043c\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/p>\n<p>[js]<br \/>\nfunc foo(_ internal: Int) {<br \/>\n          let local = internal<br \/>\n}<br \/>\nfunc bar () {<br \/>\n          let result = foo ( 123)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u041f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435<strong> _<\/strong> \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0438\u043c\u0435\u043d\u0438 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 (\u0442\u043e\u043b\u044c\u043a\u043e) \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 ( \u043d\u043e \u043d\u0435 \u0434\u043b\u044f init \u043c\u0435\u0442\u043e\u0434\u043e\u0432)<\/p>\n<p>[js]<br \/>\nfunc foo(internal: Int) {<br \/>\n          let local = internal<br \/>\n}<br \/>\nfunc bar () {<br \/>\n          let result = foo ( 123)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0435\u0435 \u0438\u043c\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u0431\u044b\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u043d\u0430\u043a\u0430<strong> #<\/strong><\/p>\n<p>[js]<br \/>\nfunc foo(#internal: Int) {<br \/>\n          let local = internal<br \/>\n}<br \/>\nfunc bar () {<br \/>\n          let result = foo (internal: 123)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u0414\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 (\u043d\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e) \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 \u0438\u043c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u043c<\/p>\n<p>[js]<br \/>\nfunc foo(first: Int, second: Double) {<br \/>\n          let local = internal<br \/>\n}<br \/>\nfunc bar () {<br \/>\n          let result = foo (123, second: 5.5)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u0412\u043d\u0435\u0448\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u044b<\/p>\n<p>[js]<br \/>\nfunc foo(first: Int, externalSecond second: Double) {<br \/>\n          let local = internal<br \/>\n}<br \/>\nfunc bar () {<br \/>\n          let result = foo (123, externalSecond: 5.5)<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>\u0418\u043b\u0438 \u0434\u0430\u0436\u0435 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u044b (\u0445\u043e\u0442\u044f \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b &#171;\u0430\u043d\u0442\u0438-Swift&#187;)<\/p>\n<p>[js]<br \/>\nfunc foo(first: Int, _ second: Double) {<br \/>\n          let local = internal<br \/>\n}<br \/>\nfunc bar () {<br \/>\n          let result = foo (123,5.5)<br \/>\n}<br \/>\n[\/js]<\/p>\n<hr \/>\n<p>\u042f \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435<strong> _<\/strong> \u00a0\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445. \u0411\u044b\u0432\u0430\u044e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u043d\u043e \u044f \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 (<strong>properties<\/strong>). \u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 (<strong> property observers<\/strong>) \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b, \u0438 \u043c\u044b \u0438\u0445 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u0445.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-6.34.42-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1213 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-6.34.42-PM.png\" alt=\"Screen Shot 2015-02-14 at 6.34.42 PM\" width=\"1484\" height=\"826\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-6.34.42-PM.png 1484w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-6.34.42-PM-300x167.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-6.34.42-PM-1024x570.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-6.34.42-PM-500x278.png 500w\" sizes=\"auto, (max-width: 1484px) 100vw, 1484px\" \/><\/a><\/p>\n<hr \/>\n<h1>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 ( Properties)<\/h1>\n<ul>\n<li><b>\u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 (Property Observers)<\/b><\/li>\n<\/ul>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043b\u044e\u0431\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong><span style=\"color: #0000ff;\">willSet<\/span><\/strong> \u0438 <strong><span style=\"color: #0000ff;\">didSet\u00a0<\/span><\/strong><\/p>\n<p>[js]<br \/>\nvar someStoredProperty: Int = 42{<br \/>\n    willSet {newValue &#8212; \u044d\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435}<br \/>\n    didSet {oldValue &#8212; \u044d\u0442\u043e \u0441\u0442\u0430\u0440\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435}<br \/>\n}<br \/>\noverride var inheritedProperty {<br \/>\n    willSet {newValue &#8212; \u044d\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435}<br \/>\n    didSet {oldValue &#8212; \u044d\u0442\u043e \u0441\u0442\u0430\u0440\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435}<br \/>\n}<br \/>\n[\/js]<\/p>\n<hr \/>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e \u0436\u0435\u043b\u0442\u043e\u043c \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0430\u0445 \u043a\u0430\u043a \u0442\u043e, \u043d\u0430 \u0447\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<br \/>\n\u0412\u043d\u0443\u0442\u0440\u0438 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a \u0432\u043c\u0435\u0441\u0442\u043e get {} \u0438 set {} \u043a\u0430\u043a \u0432 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 (computed property) \u043c\u044b \u043f\u0438\u0448\u0435\u043c <strong><span style=\"color: #0000ff;\">willSet\u00a0{}<\/span> <\/strong>\u0438 <strong><span style=\"color: #0000ff;\">didSet {}<\/span><\/strong>. \u0412\u043d\u0443\u0442\u0440\u0438 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a <span style=\"color: #0000ff;\"><strong>willSet\u00a0{}\u00a0<\/strong>\u0438\u00a0<strong>didSet {}\u00a0<\/strong><\/span>\u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043a\u0443\u0441\u043a\u0438 \u043a\u043e\u0434\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong><span style=\"color: #0000ff;\">newValue<\/span><\/strong> \u0438 <strong><span style=\"color: #0000ff;\">oldValue<\/span><\/strong>. \u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 <span style=\"color: #0000ff;\"><strong>willSet \u00a0<\/strong>\u0438\u00a0<strong>didSet\u00a0<\/strong><\/span>\u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u043a\u0442\u043e-\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e. \u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c <strong><span style=\"color: #0000ff;\">willSet<\/span>\u00a0<\/strong>\u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong><span style=\"color: #0000ff;\">newValue<\/span><\/strong>.\u00a0\u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044c <strong><span style=\"color: #0000ff;\">didSet<\/span>\u00a0<\/strong>\u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u00a0\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0441 \u0438\u043c\u0435\u043d\u0435\u043c\u00a0<strong><span style=\"color: #0000ff;\">oldValue<\/span><\/strong>.<br \/>\n\u041d\u0430 \u0441\u043b\u0430\u0439\u0434\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0434\u0432\u0430 \u0441\u043b\u0443\u0447\u0430\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<p>\u041e\u0434\u0438\u043d \u0434\u043b\u044f <strong>stored property <\/strong>\u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0435. \u0418 \u0432\u0441\u044f\u043a\u0438\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043a\u0442\u043e-\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>\u0414\u0440\u0443\u0433\u043e\u0439 \u0434\u043b\u044f \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u0445 (<strong>inherited<\/strong>) \u0441\u0432\u043e\u0439\u0441\u0442\u0432. \u0412\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u044d\u0442\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u043d\u043e \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u043d\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0438\u0445 \u043a\u0442\u043e-\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u0438 \u00a0<span style=\"color: #0000ff;\"><strong>willSet \u00a0<\/strong>\u0438\u00a0<strong>didSet\u00a0<\/strong><\/span>\u0434\u043b\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u0445 \u043e\u0442\u00a0<strong>superclass<\/strong>.<br \/>\n\u0427\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u044d\u0442\u0438\u0445 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f\u0445? \u041e\u0447\u0435\u043d\u044c \u043e\u0431\u0449\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u00a0iOS &#8212; \u044d\u0442\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \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. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u00a0<strong><span style=\"color: #0000ff;\">ViewController<\/span> <\/strong>\u0438\u043b\u0438\u00a0<strong><span style=\"color: #0000ff;\">View,<\/span><\/strong> \u0438 \u0432\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0435 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u043d\u0438\u0445, \u0442\u043e\u0433\u0434\u0430 \u0432\u00a0\u00a0<strong><span style=\"color: #0000ff;\">didSet<\/span><\/strong> \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \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.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-7.32.13-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1214 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-7.32.13-PM.png\" alt=\"Screen Shot 2015-02-14 at 7.32.13 PM\" width=\"1480\" height=\"832\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-7.32.13-PM.png 1480w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-7.32.13-PM-300x169.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-7.32.13-PM-1024x576.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-7.32.13-PM-500x281.png 500w\" sizes=\"auto, (max-width: 1480px) 100vw, 1480px\" \/><\/a><\/p>\n<hr \/>\n<h1>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 ( Properties)<\/h1>\n<ul>\n<li><b>\u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 (Property Observers)<\/b><\/li>\n<\/ul>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043b\u044e\u0431\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<strong><span style=\"color: #0000ff;\">willSe<\/span><\/strong>t \u0438\u00a0<strong><span style=\"color: #0000ff;\">didSet\u00a0<\/span><\/strong><br \/>\n\u041e\u0447\u0435\u043d\u044c \u043e\u0431\u0449\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u0435\u043b\u044f\u0445 \u0432 Controller &#8212; \u044d\u0442\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \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.<\/p>\n<ul>\n<li><b>\u041e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/b><\/li>\n<\/ul>\n<p><strong><span style=\"color: #0000ff;\">Lazy<\/span><\/strong> \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 (\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439) \u043d\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043a\u0442\u043e-\u0442\u043e \u0438\u0445 \u043d\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442.<br \/>\n\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c (allocate) \u043e\u0431\u044a\u0435\u043a\u0442, \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435 (closure) \u0438\u043b\u0438 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434<\/p>\n<p>[js]<br \/>\n\/\/ \u0435\u0441\u043b\u0438 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c \u043c\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432<br \/>\nlazy var brain = CalculatorBrain ()<br \/>\nlazy var someProperty:Type = {<br \/>\n\/\/ \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u0443\u0435\u043c \u0437\u0434\u0435\u0441\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 someProperty<br \/>\n   return &lt;\u0441\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&gt;<br \/>\n}()<\/p>\n<p>lazy var myProperty = self.initializeMyProperty ()<br \/>\n[\/js]<\/p>\n<p>\u042d\u0442\u043e \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0443: &#171;\u0412\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b&#187;<br \/>\n\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u043c\u0438 (<strong><span style=\"color: #993366;\">var<\/span> <\/strong>&#8212; \u00a0\u043c\u043e\u0436\u043d\u043e, <strong><span style=\"color: #993366;\">let<\/span> <\/strong>&#8212; \u043d\u0435\u043b\u044c\u0437\u044f)<br \/>\n\u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043e\u043a \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<hr \/>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0441\u043b\u043e\u0432\u043e\u00a0<span style=\"color: #0000ff;\"><strong>lazy<\/strong><\/span> \u043f\u0435\u0440\u0435\u0434 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u044d\u0442\u043e\u043c\u0443 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u00a0<span style=\"color: #0000ff;\"><strong>lazy<\/strong><span style=\"color: #000000;\">\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<\/span><span style=\"color: #000000;\">\u00a0\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/span><strong>\u00a0<\/strong><\/span>\u00a0\u0437\u043d\u0430\u043a\u0430 &#171;=&#187; \u043f\u0440\u0438 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043a\u0442\u043e-\u0442\u043e \u043d\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u0442\u043e\u043c\u0443 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0443. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0437\u043d\u0430\u043a\u0430\u00a0\u00a0&#171;=&#187; \u043f\u0440\u0438 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438. \u042d\u0442\u043e \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043a\u0442\u043e-\u0442\u043e \u043d\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442 \u044d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e. \u0418 \u0432\u044b \u0434\u0430\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0441\u0442\u043e\u0438\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e\u00a0\u00a0<span style=\"color: #0000ff;\"><strong>lazy<\/strong><\/span>. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0435 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0432\u0430\u0448 \u043a\u043b\u0430\u0441\u0441 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d. \u041d\u043e \u043f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u044b. \u041f\u043e\u043d\u044f\u0442\u043d\u044b \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438?<br \/>\n<strong><span style=\"color: #0000ff;\">Lazy<\/span><\/strong> \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u044e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0443, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u0445 \u0438\u0441\u0442\u0438\u043d\u043d\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043e\u0442\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043d\u0438\u043c. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 <strong><span style=\"color: #0000ff;\">\u00a0lazy<\/span><\/strong> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e <strong><span style=\"color: #0000ff;\">var<\/span><\/strong>s, \u043d\u0435 <strong><span style=\"color: #0000ff;\">let<\/span><\/strong>s.<\/p>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u0448\u0438\u043c\u00a0<strong>superclass<\/strong> \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0438 \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 <strong><span style=\"color: #0000ff;\">lazy<\/span><\/strong>\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u0417\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0449\u044c &#8212; \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432.<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e\u0431 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-8.35.23-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1215 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-8.35.23-PM.png\" alt=\"Screen Shot 2015-02-14 at 8.35.23 PM\" width=\"1520\" height=\"842\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-8.35.23-PM.png 1520w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-8.35.23-PM-300x166.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-8.35.23-PM-1024x567.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-8.35.23-PM-500x277.png 500w\" sizes=\"auto, (max-width: 1520px) 100vw, 1520px\" \/><\/a><\/p>\n<hr \/>\n<h1>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h1>\n<ul>\n<li><b>\u041a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u0435\u043d<span style=\"color: #0000ff;\">\u00a0init<\/span> \u043c\u0435\u0442\u043e\u0434?<\/b><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><strong><span style=\"color: #0000ff;\">init<\/span> <\/strong>\u00a0\u043d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0435\u0441\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c &#171;<strong>=<\/strong>&#187;<br \/>\n\u0418\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c <strong><span style=\"color: #0000ff;\">Optional<\/span><\/strong>, \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u0438 \u0441\u0442\u0430\u0440\u0442\u0443\u044e\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441 <strong><span style=\"color: #0000ff;\">nil<\/span><\/strong><br \/>\n\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u0443\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f<br \/>\n\u0418\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<strong><span style=\"color: #0000ff;\"> lazy<\/span><\/strong> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e<br \/>\n\u041f\u043e\u044d\u0442\u043e\u043c\u0443<span style=\"color: #0000ff;\">\u00a0<\/span><strong><span style=\"color: #0000ff;\">init<\/span>\u00a0<\/strong>\u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u044d\u0442\u0438\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432<\/p>\n<ul>\n<li><b>\u00a0\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435\u00a0<span style=\"color: #0000ff;\">init\u00a0<\/span>\u043c\u0435\u0442\u043e\u0434\u044b &#171;\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e&#187;<\/b><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435 (\u043d\u0435\u0442 superclass) \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435\u00a0<strong>init ()\u00a0<\/strong>&#171;\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e&#187;<br \/>\n\u0415\u0441\u043b\u0438 \u0443 <strong><span style=\"color: #0000ff;\">struct<\/span><\/strong> \u043d\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u043e\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>[js]<br \/>\n struct myStruct {<br \/>\n    var x: Int = 42<br \/>\n    var y: String = &quot;moltuae&quot;<\/p>\n<p>    init (x:Int, y:String) \/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e<br \/>\n}<br \/>\n[\/js]<\/p>\n<hr \/>\n<p>\u0412\u00a0<strong><span style=\"color: #0000ff;\">CalculatorBrain<\/span><\/strong> \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435<strong><span style=\"color: #0000ff;\"> init()<\/span><\/strong>. \u0422\u0430\u043c \u043e\u043d \u043d\u0430\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d.<\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u00a0<strong><span style=\"color: #0000ff;\">\u00a0init()<\/span><\/strong>. \u041d\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u0432\u0430\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u0435\u043d, \u043a\u0430\u043a \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e?\u00a0<strong><span style=\"color: #0000ff;\">\u00a0init()<\/span><\/strong>\u00a0&#8212; \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430\u044f \u0432\u0435\u0449\u044c \u0438 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u0430\u044f. \u041d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 <strong><span style=\"color: #0000ff;\">\u00a0init()\u00a0<\/span><\/strong>&#171;\u0434\u0430\u0440\u043e\u043c&#187;.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0431\u0435\u0437 <strong>superclass<\/strong>, \u043a\u0430\u043a\u00a0<strong><span style=\"color: #0000ff;\">CalculatorBrain,<\/span><\/strong> \u0438 \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0442\u043e \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 <strong><span style=\"color: #0000ff;\">\u00a0init()\u00a0<\/span><\/strong>\u0431\u0435\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432\u00a0&#171;\u0434\u0430\u0440\u043e\u043c&#187;.<br \/>\n\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0432 \u043a\u043b\u0430\u0441\u0441\u0435\u00a0<strong><span style=\"color: #0000ff;\">CalculatorBrain<\/span><\/strong> <strong><span style=\"color: #0000ff;\">\u00a0init()<\/span><\/strong>, \u0442\u043e \u00a0\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435\u00a0<strong><span style=\"color: #0000ff;\">\u00a0init()\u00a0<\/span><\/strong>\u0431\u0435\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432\u00a0&#171;\u0434\u0430\u0440\u043e\u043c&#187; \u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <strong><span style=\"color: #0000ff;\">brain = CalculatorBrain ()<\/span><\/strong>.<\/p>\n<p>\u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f <strong><span style=\"color: #0000ff;\">\u00a0init<\/span><\/strong>, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 <strong><span style=\"color: #0000ff;\">struct<\/span><\/strong>, \u0430 \u043d\u0435 <strong><span style=\"color: #0000ff;\">class<\/span><\/strong>: \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u0432\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0427\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432?<br \/>\n\u0412 <strong><span style=\"color: #0000ff;\">\u0421alculatorBrain<\/span> <\/strong>\u043c\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 &#171;\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435&#187; \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-9.33.29-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1217 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-9.33.29-PM.png\" alt=\"Screen Shot 2015-02-14 at 9.33.29 PM\" width=\"1472\" height=\"850\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-9.33.29-PM.png 1472w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-9.33.29-PM-300x173.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-9.33.29-PM-1024x591.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-9.33.29-PM-500x289.png 500w\" sizes=\"auto, (max-width: 1472px) 100vw, 1472px\" \/><\/a><\/p>\n<hr \/>\n<p><strong>\u00a0\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong><\/p>\n<ul>\n<li><b>\u0427\u0442\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 <span style=\"color: #0000ff;\">init<\/span> ?<\/b><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">\u00a0\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u044b\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c, \u0434\u0430\u0436\u0435 \u0442\u0435\u043c, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<br \/>\n\u041c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430- \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b ( \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a<strong><span style=\"color: #0000ff;\"> let\u00a0<\/span><\/strong>)<br \/>\n\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435<strong><span style=\"color: #0000ff;\"> init<\/span><\/strong> \u043c\u0435\u0442\u043e\u0434\u044b \u0432 \u0432\u0430\u0448\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u00a0<strong><span style=\"color: #0000ff;\">self.init (&lt;<span style=\"color: #000000;\">args<\/span>&gt;)<\/span><\/strong><br \/>\n\u0412 \u043a\u043b\u0430\u0441\u0441\u0435 \u0432\u044b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c\u00a0<strong><span style=\"color: #0000ff;\">super.init (&lt;<span style=\"color: #000000;\">args<\/span>&gt;)<\/span><\/strong><br \/>\n\u041d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430<strong><span style=\"color: #0000ff;\"> inits<\/span><\/strong> \u00a0\u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445<strong><span style=\"color: #0000ff;\"> inits<\/span><\/strong> \u0432 <strong><span style=\"color: #0000ff;\">class<\/span><\/strong>&#8230;<\/p>\n<hr \/>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043c\u044b \u0434\u0430\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<br \/>\n\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u0432 12, \u0442\u043e \u0432 \u0432\u0430\u0448\u0435\u043c\u00a0<strong><span style=\"color: #0000ff;\">init<\/span><\/strong> \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u043e \u0447\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435, \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0434\u0443\u043c\u0430\u0435\u0442\u0435.<br \/>\n\u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430-\u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b. \u041b\u044e\u0434\u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u043d\u0438\u043c\u0430\u044e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b <strong><span style=\"color: #0000ff;\">(let<\/span><\/strong> \u0432 \u0434\u0435\u043a\u043b\u0430\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438), \u043d\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0430\u0448\u0435\u0433\u043e <strong><span style=\"color: #0000ff;\">init<\/span><\/strong>.<\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0434\u0440\u0443\u0433\u0438\u0445<strong><span style=\"color: #0000ff;\"> inits,<\/span><\/strong> \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u043a\u043b\u0430\u0441\u0441\u0430\u0445. \u0412 <strong><span style=\"color: #0000ff;\">struct<\/span><\/strong>\u00a0\u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a \u0441\u043b\u043e\u0436\u043d\u043e, \u043d\u043e \u0432 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0430\u0432\u0438\u043b \u0438 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0434\u0432\u0430 \u0441\u043b\u0430\u0439\u0434\u0430, \u0447\u0442\u043e\u0431\u044b \u043a\u0440\u0430\u0442\u043a\u043e &#171;\u043f\u0440\u043e\u0431\u0435\u0436\u0430\u0442\u044c\u0441\u044f&#187; \u043f\u043e \u043d\u0438\u043c.<\/p>\n<p>\u0427\u0430\u0441\u0442\u044c \u044d\u0442\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u00a0<strong><span style=\"color: #0000ff;\">init<\/span><\/strong>? \u0427\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c?<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.42.54-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1219 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.42.54-PM.png\" alt=\"Screen Shot 2015-02-14 at 10.42.54 PM\" width=\"1472\" height=\"842\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.42.54-PM.png 1472w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.42.54-PM-300x172.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.42.54-PM-1024x586.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/02\/Screen-Shot-2015-02-14-at-10.42.54-PM-500x286.png 500w\" sizes=\"auto, (max-width: 1472px) 100vw, 1472px\" \/><\/a><\/p>\n<hr \/>\n<p><strong>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong><\/p>\n<ul>\n<li><b>\u0427\u0442\u043e <span style=\"text-decoration: underline;\">\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e<\/span> \u043d\u0443\u0436\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438\u00a0<span style=\"color: #0000ff;\">init<\/span>\u00a0?<\/b><\/li>\n<\/ul>\n<p>\u041a \u043a\u043e\u043d\u0446\u0443 <strong><span style=\"color: #0000ff;\">init<\/span><\/strong>, \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <strong>(<span style=\"color: #000000;\">Optional<\/span><\/strong> \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <strong><span style=\"color: #0000ff;\">nil<\/span><\/strong>)<br \/>\n\u0423 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 (<strong><span style=\"color: #0000ff;\">class<\/span><\/strong>) \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 <strong><span style=\"color: #0000ff;\">init<\/span><\/strong>s : <strong><span style=\"color: #0000ff;\">convenience<\/span><\/strong> \u0438 <strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435<\/strong> (\u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0435\u00a0\u00a0<strong><span style=\"color: #0000ff;\">convenience<\/span><\/strong>)<br \/>\n<strong>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong> <strong><span style=\"color: #0000ff;\">init<\/span>\u00a0<\/strong>\u0434\u043e\u043b\u0436\u0435\u043d \u00a0\u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c <strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong> \u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u00a0\u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e <strong>superclass<\/strong>;\u00a0\u0438\u00a0\u00a0\u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440<br \/>\n\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0432\u044b\u0437\u0432\u0430\u0442\u044c\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u00a0\u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e\u00a0<strong>superclass<\/strong><br \/>\n\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u00a0<strong>superclass<\/strong> \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u043c (inherited) \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c<br \/>\n<span style=\"color: #0000ff;\"><strong>convenience\u00a0init<\/strong> <\/span>\u00a0\u0434\u043e\u043b\u0436\u0435\u043d \u00a0\u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong>\u00a0\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430;\u00a0\u0438\u00a0\u00a0\u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440<br \/>\n<span style=\"color: #0000ff;\"><strong>convenience\u00a0init<\/strong>\u00a0<\/span> \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong>\u00a0\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0435 \u043d\u0430 \u043f\u0440\u044f\u043c\u0443\u044e, \u0430 \u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0443\u0433\u043e\u0439\u00a0<span style=\"color: #0000ff;\"><strong>convenience\u00a0init<\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong>convenience\u00a0init<\/strong>\u00a0<\/span>\u00a0\u0434\u043e\u043b\u0436\u0435\u043d \u00a0\u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong>\u00a0\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043e\u043d \u0441\u043c\u043e\u0436\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u044b\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c<br \/>\n\u0412\u044b\u0437\u043e\u0432 \u0434\u0440\u0443\u0433\u0438\u0445\u00a0<strong><span style=\"color: #0000ff;\">init<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">s \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b<\/span><\/span><\/p>\n<hr \/>\n<p>\u0412\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0435. \u0412\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u0431\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0441\u0432\u043e\u0439\u0441\u0442\u0432. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0447\u0442\u043e \u0434\u043b\u044f <strong>Optionals,<\/strong>\u00a0<strong><span style=\"color: #0000ff;\">nil<\/span><\/strong> &#8212; \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438 \u043e\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0434\u043b\u044f \u043a\u043b\u0430\u0441\u0441\u0430 (<strong><span style=\"color: #0000ff;\">class<\/span><\/strong>). \u00a0\u041d\u0435 \u0434\u043b\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 <strong><span style=\"color: #0000ff;\">stru<\/span><\/strong>ct, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f <strong><span style=\"color: #0000ff;\">class<\/span><\/strong>es. \u041e\u0434\u0438\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f\u00a0<strong><span style=\"color: #0000ff;\">convenience\u00a0init<\/span> <\/strong>( \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440) \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 ( \u043d\u0435\u00a0<strong><span style=\"color: #0000ff;\">convenience\u00a0init<\/span><\/strong>), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f<strong> \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438 (designated)<\/strong> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c\u0438. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f\u00a0<strong>\u00a0\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u043c (designated)<\/strong>\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c, \u043d\u043e \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0438\u00a0<strong><span style=\"color: #0000ff;\">convenience\u00a0<\/span><\/strong>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b. \u041c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0443 \u043d\u0438\u0445 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e\u0431 \u044d\u0442\u043e\u043c.<\/p>\n<p><strong>\u042d\u0442\u043e \u041f\u0420\u0410\u0412\u0418\u041b\u041e \u041d\u041e\u041c\u0415\u0420 1 \u0434\u043b\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432. \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439\u00a0<\/strong>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u0442\u043e\u0442 \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e <strong>\u043d\u0435\u0442<\/strong> \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 <strong><span style=\"color: #0000ff;\">convenience<\/span><\/strong>, \u0434\u043e\u043b\u0436\u0435\u043d \u00a0\u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong>\u00a0\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u00a0\u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e\u00a0<strong>superclass<\/strong>. \u0418 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c <strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439\u00a0<\/strong>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0435\u0437\u00a0\u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430\u00a0<strong><span style=\"color: #0000ff;\">convenience<\/span><\/strong>, \u043e\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432 \u0432\u0430\u0448\u0435\u043c \u043a\u043b\u0430\u0441\u0441\u0435. \u041e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0437\u0432\u0430\u0442\u044c\u00a0\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u00a0\u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e\u00a0<strong>superclass<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0436\u0435\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439\u00a0<\/strong>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c\u00a0<strong>superclass<\/strong>, \u0430 \u043d\u0435 \u00a0<strong><span style=\"color: #0000ff;\">convenience<\/span><\/strong>\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432 <strong>superclass<\/strong>. \u042d\u0442\u043e \u0432\u0441\u0435 \u0435\u0441\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438.<\/p>\n<p><strong>\u042d\u0442\u043e \u041f\u0420\u0410\u0412\u0418\u041b\u041e \u041d\u041e\u041c\u0415\u0420 2 \u0434\u043b\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432.\u00a0<\/strong>\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <strong>\u043f\u0435\u0440\u0435\u0434<\/strong> \u0442\u0435\u043c, \u0432\u044b \u0432\u044b\u0437\u043e\u0432\u0438\u0442\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432\u0430\u0448\u0435\u0433\u043e\u00a0\u00a0<strong>superclass<\/strong>. \u042d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445\u00a0<\/strong>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 &#8212; \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435, \u043a\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0432\u00a0<strong>superclass<\/strong>. \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u0438\u0442\u0435\u00a0\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e\u00a0<strong>superclass<\/strong>.<\/p>\n<p><strong>\u042d\u0442\u043e \u041f\u0420\u0410\u0412\u0418\u041b\u041e \u041d\u041e\u041c\u0415\u0420 3\u00a0\u0434\u043b\u044f \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432.\u00a0<\/strong>\u041d\u043e \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u00a0<strong>superclass<\/strong>\u00a0\u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <strong>\u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u043c<\/strong> <strong>(inherited<\/strong>) \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c \u0438\u0437 \u0432\u0430\u0448\u0435\u0433\u043e\u00a0<strong>superclass<\/strong>. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u0430\u0442\u044c \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0443 \u0432\u0430\u0448\u0435\u0433\u043e\u00a0\u00a0<strong>superclass,\u00a0<\/strong>\u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0432\u0441\u0435 \u0441\u0432\u043e\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c.<\/p>\n<p>\u042d\u0442\u0438 3 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u043b\u044f\u00a0\u0434\u043b\u044f<strong> \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445\u00a0<\/strong>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432 \u0438 \u0432\u044b\u0437\u043e\u0432\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432\u00a0<strong>superclass<\/strong>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c\u00a0<strong><span style=\"color: #0000ff;\">convenience<\/span><\/strong>\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0438 \u0434\u043b\u044f \u043d\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430.<br \/>\n<strong>\u042d\u0442\u043e \u041f\u0420\u0410\u0412\u0418\u041b\u041e \u041d\u041e\u041c\u0415\u0420 1 \u0434\u043b\u044f \u00a0<span style=\"color: #0000ff;\">convenience\u00a0<\/span>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432.\u00a0<span style=\"color: #0000ff;\">convenience<\/span>\u00a0<\/strong>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440<strong>\u00a0<\/strong>\u0434\u043e\u043b\u0436\u0435\u043d \u00a0\u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong>\u00a0\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430. \u0418 \u00a0\u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u043e\u043d \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c\u00a0\u00a0<strong><span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u00a0<strong>superclass. <\/strong>\u041d\u043e\u00a0<span style=\"color: #0000ff;\"><strong>convenience\u00a0init<\/strong>\u00a0<\/span>\u00a0\u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong>\u00a0<strong>\u00a0<span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0435 \u043d\u0430 \u043f\u0440\u044f\u043c\u0443\u044e, \u0430 \u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0443\u0433\u043e\u0439\u00a0<strong><span style=\"color: #0000ff;\">convenience\u00a0init<\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442<strong> \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430. \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong>\u00a0\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u044b\u0437\u0432\u0430\u043d.<\/span><\/span><\/p>\n<p><strong>\u042d\u0442\u043e \u041f\u0420\u0410\u0412\u0418\u041b\u041e \u041d\u041e\u041c\u0415\u0420 2 \u0434\u043b\u044f \u00a0<span style=\"color: #0000ff;\">convenience\u00a0<\/span>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432.\u00a0<span style=\"color: #0000ff;\">convenience<\/span>\u00a0<\/strong>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440<strong>\u00a0<\/strong>\u0434\u043e\u043b\u0436\u0435\u043d \u00a0\u0432\u044b\u0437\u0432\u0430\u0442\u044c\u00a0<strong>\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439<\/strong>\u00a0<strong>\u00a0<span style=\"color: #0000ff;\">init\u00a0<\/span><\/strong>\u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043f\u0440\u044f\u043c\u044b\u043c \u0438\u043b\u0438 \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0432\u044b \u043d\u0430\u0447\u043d\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0438\u043b\u0438 \u0441 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043f\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043c \u043d\u0430\u0447\u043d\u0435\u0442\u0435 &#171;\u0443\u0434\u043e\u0431\u043d\u044b\u043c&#187; \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c &#171;\u043f\u043e\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c&#187; \u0432\u0430\u0448\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<p><strong>\u042d\u0442\u043e \u041f\u0420\u0410\u0412\u0418\u041b\u041e \u00a0\u0434\u043b\u044f \u0432\u0441\u0435\u0445<span style=\"color: #0000ff;\">\u00a0<\/span>\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432<\/strong>. \u0412\u044b\u0437\u043e\u0432\u044b \u0432\u0441\u0435\u0445 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432<strong>\u00a0<\/strong>\u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u044b \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b \u043d\u0430\u0447\u043d\u0435\u0442\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c<strong> self<\/strong>. \u0412\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <strong><span style=\"color: #0000ff;\">lazy<\/span><\/strong>, \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u043e \u0441\u0432\u043e\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0443\u0442\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e <strong>\u043d\u0435<\/strong> <strong><span style=\"color: #0000ff;\">lazy\u00a0<\/span><\/strong>\u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432\u0441\u0435 \u0435\u0449\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0415\u0441\u0442\u044c \u0434\u0432\u0435 \u0444\u0430\u0437\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u0440\u043e\u0448\u043b\u0438 \u043f\u0435\u0440\u0432\u0443\u044e, \u0442\u043e \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <strong>\u00a0self\u00a0<\/strong>\u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432.<\/p>\n<p>\u0412\u041e\u041f\u0420\u041e\u0421: \u041c\u043e\u0436\u0435\u043c \u043b\u0438 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u043f\u0443\u0442\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430 \u044d\u0442\u043e\u0433\u043e?<\/p>\n<p>\u041e\u0422\u0412\u0415\u0422: \u00a0\u041d\u0435\u0442. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e &#171;=&#187;, \u043b\u0438\u0431\u043e \u0432 \u0432\u0430\u0448\u0435\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0435.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 (inheriting) \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432. \u042d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0442\u0435\u043c\u0430.<\/p>\n<p>&#8212;&#8212;&#8212;- 38 \u043c\u0438\u043d\u0443\u0442\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 &#8212;&#8212;&#8212;&#8212;<\/p>\n<p><b>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435: 2 &#8212; \u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043b\u0435\u043a\u0446\u0438\u0438 (37 \u043c\u0438\u043d\u0443\u0442\u0430 &#8212; \u043a\u043e\u043d\u0435\u0446 ) &#8212; \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f\u00a0<a title=\"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 \u2014 \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 2. AnyObject, as?, is, String.Index)\" href=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-2\/\">\u0437\u0434\u0435\u0441\u044c.<\/a><\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>STANFORD UNIVERSITY: \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430\u00a0iOS 8\u00a0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 Swift CS193P \u00a0\u041b\u0435\u043a\u0446\u0438\u044f 4: \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks \u041f\u0440\u043e\u0444\u0435\u0441\u0441\u043e\u0440 \u041f\u043e\u043b \u0425\u044d\u0433\u0430\u0440\u0442\u0438 (Paul Hegarty) \u041b\u0435\u043a\u0446\u0438\u044e \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0438 \u0441\u043b\u0430\u0439\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430\u00a0\u00a0iTunes \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u00a0\u201c4. More Swift and Foundation Frameworks\u201d. \u0420\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043b\u0435\u043a\u0446\u0438\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d &hellip; <a href=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,14],"tags":[31,25],"class_list":["post-1095","post","type-post","status-publish","format-standard","hentry","category-ios-8","category-stanford-cs-193p-ios-8","category-swift","tag-swift","tag-lektsiya-ios-8"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u0435\u043e\u0440\u0438\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate, Functions, Properties, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b, AnyObject,\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"tatiana.kornilova@gmail.com\"\/>\n\t<meta name=\"keywords\" content=\"ios 8,swift,stanford cs 193p,xcode 6,\u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438,\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 ios,ios programming,\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 ios 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439,stanford\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ru_RU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. | \u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043b\u0435\u043a\u0446\u0438\u0439 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430 &quot; \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439&quot; 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 , 2023,  2024,  2025  \u0438 2026 \u0433\u0433., \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0435\u0439 \u043a\u0443\u0440\u0441\u043e\u0432 \u043a \u043d\u043e\u0432\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c Swift, Objective-C \u0438 iOS.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 - \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1) | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u0435\u043e\u0440\u0438\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate, Functions, Properties, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b, AnyObject,\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-02-10T13:54:36+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-10-26T09:12:52+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 - \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1) | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u0435\u043e\u0440\u0438\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate, Functions, Properties, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b, AnyObject,\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#article\",\"name\":\"\\u041b\\u0435\\u043a\\u0446\\u0438\\u044f 4 CS193P Winter 2015 - \\u0411\\u043e\\u043b\\u044c\\u0448\\u0435 Swift \\u0438 Foundation Frameworks. (\\u0447\\u0430\\u0441\\u0442\\u044c 1) | \\u041e\\u0431\\u0443\\u0447\\u0430\\u044e\\u0449\\u0438\\u0439 \\u043a\\u0443\\u0440\\u0441 \\u043f\\u043e \\u0440\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0435 iOS+Swift \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439.\",\"headline\":\"\\u041b\\u0435\\u043a\\u0446\\u0438\\u044f 4 CS193P Winter 2015 &#8212; \\u0411\\u043e\\u043b\\u044c\\u0448\\u0435 Swift \\u0438 Foundation Frameworks. (\\u0447\\u0430\\u0441\\u0442\\u044c 1)\",\"author\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/wp-content\\\/uploads\\\/2015\\\/01\\\/Screen-Shot-2015-01-28-at-4.59.46-PM.png\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#articleImage\",\"width\":1750,\"height\":976},\"datePublished\":\"2015-02-10T13:54:36+00:00\",\"dateModified\":\"2015-10-26T09:12:52+00:00\",\"inLanguage\":\"ru-RU\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#webpage\"},\"articleSection\":\"iOS 8, Stanford CS 193P iOS 8, Swift, Swift, \\u043b\\u0435\\u043a\\u0446\\u0438\\u044f iOS 8\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/swift\\\/#listItem\",\"name\":\"Swift\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/swift\\\/#listItem\",\"position\":2,\"name\":\"Swift\",\"item\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/swift\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#listItem\",\"name\":\"\\u041b\\u0435\\u043a\\u0446\\u0438\\u044f 4 CS193P Winter 2015 &#8212; \\u0411\\u043e\\u043b\\u044c\\u0448\\u0435 Swift \\u0438 Foundation Frameworks. (\\u0447\\u0430\\u0441\\u0442\\u044c 1)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#listItem\",\"position\":3,\"name\":\"\\u041b\\u0435\\u043a\\u0446\\u0438\\u044f 4 CS193P Winter 2015 &#8212; \\u0411\\u043e\\u043b\\u044c\\u0448\\u0435 Swift \\u0438 Foundation Frameworks. (\\u0447\\u0430\\u0441\\u0442\\u044c 1)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/swift\\\/#listItem\",\"name\":\"Swift\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#person\",\"name\":\"tatiana.kornilova@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33ccc19059014d8a7849c3621afa2b66a5f3e50ac7291c91c30ff35df5747628?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"tatiana.kornilova@gmail.com\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/\",\"name\":\"tatiana.kornilova@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/33ccc19059014d8a7849c3621afa2b66a5f3e50ac7291c91c30ff35df5747628?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"tatiana.kornilova@gmail.com\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#webpage\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/\",\"name\":\"\\u041b\\u0435\\u043a\\u0446\\u0438\\u044f 4 CS193P Winter 2015 - \\u0411\\u043e\\u043b\\u044c\\u0448\\u0435 Swift \\u0438 Foundation Frameworks. (\\u0447\\u0430\\u0441\\u0442\\u044c 1) | \\u041e\\u0431\\u0443\\u0447\\u0430\\u044e\\u0449\\u0438\\u0439 \\u043a\\u0443\\u0440\\u0441 \\u043f\\u043e \\u0440\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0435 iOS+Swift \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439.\",\"description\":\"\\u041f\\u0440\\u0435\\u0434\\u0441\\u0442\\u0430\\u0432\\u043b\\u0435\\u043d\\u0430 \\u0442\\u0435\\u043e\\u0440\\u0438\\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate, Functions, Properties, \\u0438\\u043d\\u0438\\u0446\\u0438\\u0430\\u043b\\u0438\\u0437\\u0430\\u0442\\u043e\\u0440\\u044b, AnyObject,\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\"},\"datePublished\":\"2015-02-10T13:54:36+00:00\",\"dateModified\":\"2015-10-26T09:12:52+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#website\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/\",\"name\":\"\\u041e\\u0431\\u0443\\u0447\\u0430\\u044e\\u0449\\u0438\\u0439 \\u043a\\u0443\\u0440\\u0441 \\u043f\\u043e \\u0440\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0435 iOS+Swift \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439.\",\"description\":\"\\u0420\\u0443\\u0441\\u0441\\u043a\\u0438\\u0439 \\u043d\\u0435\\u0430\\u0432\\u0442\\u043e\\u0440\\u0438\\u0437\\u043e\\u0432\\u0430\\u043d\\u043d\\u044b\\u0439 \\u043a\\u043e\\u043d\\u0441\\u043f\\u0435\\u043a\\u0442 \\u043b\\u0435\\u043a\\u0446\\u0438\\u0439 \\u0421\\u0442\\u044d\\u043d\\u0444\\u043e\\u0440\\u0434\\u0441\\u043a\\u043e\\u0433\\u043e \\u0443\\u043d\\u0438\\u0432\\u0435\\u0440\\u0441\\u0438\\u0442\\u0435\\u0442\\u0430 \\\" \\u0420\\u0430\\u0437\\u0440\\u0430\\u0431\\u043e\\u0442\\u043a\\u0430 iOS \\u043f\\u0440\\u0438\\u043b\\u043e\\u0436\\u0435\\u043d\\u0438\\u0439\\\" 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 , 2023,  2024,  2025  \\u0438 2026 \\u0433\\u0433., \\u0441\\u043e\\u043f\\u0440\\u043e\\u0432\\u043e\\u0436\\u0434\\u0430\\u0435\\u043c\\u044b\\u0439 \\u0440\\u0435\\u0448\\u0435\\u043d\\u0438\\u044f\\u043c\\u0438 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0439 \\u0438 \\u0434\\u043e\\u043f\\u043e\\u043b\\u043d\\u0435\\u043d\\u0438\\u044f\\u043c\\u0438, \\u0441\\u0432\\u044f\\u0437\\u0430\\u043d\\u043d\\u044b\\u043c\\u0438 \\u0441 \\u0430\\u0434\\u0430\\u043f\\u0442\\u0430\\u0446\\u0438\\u0435\\u0439 \\u043a\\u0443\\u0440\\u0441\\u043e\\u0432 \\u043a \\u043d\\u043e\\u0432\\u044b\\u043c \\u0432\\u0435\\u0440\\u0441\\u0438\\u044f\\u043c Swift, Objective-C \\u0438 iOS.\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 - \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1) | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","description":"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u0435\u043e\u0440\u0438\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate, Functions, Properties, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b, AnyObject,","canonical_url":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"ios 8,swift,stanford cs 193p,xcode 6,\u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438,\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 ios,ios programming,\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 ios 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439,stanford","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#article","name":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 - \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1) | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","headline":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 &#8212; \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1)","author":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author"},"publisher":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.59.46-PM.png","@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#articleImage","width":1750,"height":976},"datePublished":"2015-02-10T13:54:36+00:00","dateModified":"2015-10-26T09:12:52+00:00","inLanguage":"ru-RU","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#webpage"},"isPartOf":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#webpage"},"articleSection":"iOS 8, Stanford CS 193P iOS 8, Swift, Swift, \u043b\u0435\u043a\u0446\u0438\u044f iOS 8"},{"@type":"BreadcrumbList","@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper#listItem","position":1,"name":"Home","item":"https:\/\/bestkora.com\/IosDeveloper","nextItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/#listItem","name":"Swift"}},{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/#listItem","position":2,"name":"Swift","item":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#listItem","name":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 &#8212; \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#listItem","position":3,"name":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 &#8212; \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1)","previousItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/#listItem","name":"Swift"}}]},{"@type":"Person","@id":"https:\/\/bestkora.com\/IosDeveloper\/#person","name":"tatiana.kornilova@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/33ccc19059014d8a7849c3621afa2b66a5f3e50ac7291c91c30ff35df5747628?s=96&d=mm&r=g","width":96,"height":96,"caption":"tatiana.kornilova@gmail.com"}},{"@type":"Person","@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author","url":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/","name":"tatiana.kornilova@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/33ccc19059014d8a7849c3621afa2b66a5f3e50ac7291c91c30ff35df5747628?s=96&d=mm&r=g","width":96,"height":96,"caption":"tatiana.kornilova@gmail.com"}},{"@type":"WebPage","@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#webpage","url":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/","name":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 - \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1) | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","description":"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u0435\u043e\u0440\u0438\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate, Functions, Properties, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b, AnyObject,","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/#website"},"breadcrumb":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/#breadcrumblist"},"author":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author"},"creator":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author"},"datePublished":"2015-02-10T13:54:36+00:00","dateModified":"2015-10-26T09:12:52+00:00"},{"@type":"WebSite","@id":"https:\/\/bestkora.com\/IosDeveloper\/#website","url":"https:\/\/bestkora.com\/IosDeveloper\/","name":"\u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","description":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043b\u0435\u043a\u0446\u0438\u0439 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430 \" \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439\" 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 , 2023,  2024,  2025  \u0438 2026 \u0433\u0433., \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0435\u0439 \u043a\u0443\u0440\u0441\u043e\u0432 \u043a \u043d\u043e\u0432\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c Swift, Objective-C \u0438 iOS.","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/#person"}}]},"og:locale":"ru_RU","og:site_name":"\u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. | \u0420\u0443\u0441\u0441\u043a\u0438\u0439 \u043d\u0435\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043f\u0435\u043a\u0442 \u043b\u0435\u043a\u0446\u0438\u0439 \u0421\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430 &quot; \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439&quot; 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 , 2023,  2024,  2025  \u0438 2026 \u0433\u0433., \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u0439 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0435\u0439 \u043a\u0443\u0440\u0441\u043e\u0432 \u043a \u043d\u043e\u0432\u044b\u043c \u0432\u0435\u0440\u0441\u0438\u044f\u043c Swift, Objective-C \u0438 iOS.","og:type":"article","og:title":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 - \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1) | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","og:description":"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u0435\u043e\u0440\u0438\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate, Functions, Properties, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b, AnyObject,","og:url":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/","article:published_time":"2015-02-10T13:54:36+00:00","article:modified_time":"2015-10-26T09:12:52+00:00","twitter:card":"summary","twitter:title":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 - \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1) | \u041e\u0431\u0443\u0447\u0430\u044e\u0449\u0438\u0439 \u043a\u0443\u0440\u0441 \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 iOS+Swift \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.","twitter:description":"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u0435\u043e\u0440\u0438\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate, Functions, Properties, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b, AnyObject,"},"aioseo_meta_data":{"post_id":"1095","title":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 - \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1) | #site_title","description":"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0442\u0435\u043e\u0440\u0438\u044f: Optional, Array, Dictionary , Range, NSNumber, NSDate,  Functions, Properties, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b, AnyObject,","keywords":[{"label":"iOS 8","value":"iOS 8"},{"label":"Swift","value":"Swift"},{"label":"Stanford CS 193P","value":"Stanford CS 193P"},{"label":"Xcode 6","value":"Xcode 6"},{"label":"\u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438","value":"\u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438"},{"label":"\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 iOS","value":"\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 iOS"},{"label":"iOS programming","value":"iOS programming"},{"label":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439","value":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439"},{"label":"stanford","value":"stanford"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 06:30:32","updated":"2026-02-22 19:45:34","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/bestkora.com\/IosDeveloper\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/\" title=\"Swift\">Swift<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 \u2014 \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/bestkora.com\/IosDeveloper"},{"label":"Swift","link":"https:\/\/bestkora.com\/IosDeveloper\/category\/swift\/"},{"label":"\u041b\u0435\u043a\u0446\u0438\u044f 4 CS193P Winter 2015 &#8212; \u0411\u043e\u043b\u044c\u0448\u0435 Swift \u0438 Foundation Frameworks. (\u0447\u0430\u0441\u0442\u044c 1)","link":"https:\/\/bestkora.com\/IosDeveloper\/lektsiya-4-cs193p-winter-2015-bolshe-swift-i-foundation-frameworks-chast-1\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/1095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/comments?post=1095"}],"version-history":[{"count":52,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/1095\/revisions"}],"predecessor-version":[{"id":3166,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/1095\/revisions\/3166"}],"wp:attachment":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/media?parent=1095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/categories?post=1095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/tags?post=1095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}