{"id":369,"date":"2014-07-12T19:22:41","date_gmt":"2014-07-12T19:22:41","guid":{"rendered":"http:\/\/bestkora.com\/IosDeveloper\/?p=369"},"modified":"2017-09-25T08:56:48","modified_gmt":"2017-09-25T08:56:48","slug":"stanford-cs-193p-ios-7-domashnee-zadanie-2","status":"publish","type":"post","link":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/","title":{"rendered":"Stanford CS 193P iOS 7 &#8212; \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2"},"content":{"rendered":"<h2><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-3.34.28-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-383 size-large\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-3.34.28-PM-1024x741.png\" alt=\"Screen Shot 2014-07-13 at 3.34.28 PM\" width=\"584\" height=\"422\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-3.34.28-PM-1024x741.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-3.34.28-PM-300x217.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-3.34.28-PM-414x300.png 414w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h2>\n<p>\u0422\u0435\u043a\u0441\u0442 \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430\u00a0<span style=\"color: #373737;\">\u00a0<\/span><strong><a style=\"color: #1982d1;\" title=\"Developing iOS 7 Apps: Assignment 2\" href=\"https:\/\/itunes.apple.com\/us\/course\/developing-ios-7-apps-for\/id733644550\" target=\"_blank\" rel=\"noopener\">iTunes \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 \u00a0\u201cDeveloping iOS 7 app:Assignment 2\u2033<\/a><\/strong><span style=\"color: #373737;\">.\u00a0<\/span>\u041d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435\u00a0<p><span class=\"gdm-drivefile-embed\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ssl.gstatic.com\/docs\/doclist\/images\/icon_10_pdf_list.png\" width=\"16\" height=\"16\" \/> <a href=\"https:\/\/docs.google.com\/file\/d\/0B0jZOSo2e4NmaElXSWFtWWN6NG8\/edit?usp=drivesdk\" target=\"&quot;_blank&quot;\">\u0417\u0430\u0434\u0430\u043d\u0438\u0435 2 Matchismo 2 fall 2013.pdf<\/a><\/span><\/p><\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 1<\/h2>\n<blockquote><p>\u0421\u043b\u0435\u0434\u0443\u0439\u0442\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0430\u0445 \u043b\u0435\u043a\u0446\u0438\u0438 (\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442) \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 <strong>Matchismo<\/strong>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043d\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 (\u0442\u043e \u0435\u0441\u0442\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043a\u0430\u0440\u0442) \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0435\u0433\u043e \u043d\u0430 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 iPhone (iPhone Simulator) \u0432 Xcode 5. \u041d\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u0430\u043c \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0432\u0430\u0448\u0430 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u0430\u044f \u0438\u0433\u0440\u0430 \u201c\u043d\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u201d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439.<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p style=\"color: #373737;\">\u0421\u043b\u0430\u0439\u0434\u044b \u00a0<strong><a style=\"color: #1982d1;\" href=\"https:\/\/bestkora.com\/IosDeveloper\/demonstratsiya-1\/\">\u041b\u0435\u043a\u0446\u0438\u0438 3<\/a><\/strong>\u00a0\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f 1 \u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0448\u0430\u0433\u043e\u0432, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0448\u0435. \u0421\u043b\u0435\u0434\u0443\u044f \u044d\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 (\u0435\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u043b\u0435\u043a\u0446\u0438\u0438), \u0432\u044b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u0443\u043d\u043a\u0442 2 \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b 2.<\/p>\n<p style=\"color: #373737;\"><!--more--><\/p>\n<p style=\"color: #373737;\">\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430\u00a0<a style=\"color: #1982d1;\" title=\"code of matchismo - assignment #2 task #1 @ github\" href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/tree\/EndLecture3\" target=\"_blank\" rel=\"noopener\"><strong>Githu<\/strong>b<\/a>.<\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 2<\/h2>\n<blockquote><p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443\u00a0<strong>UIButton\u00a0<\/strong>\u0434\u043b\u044f \u201c\u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0438\u201d \u043a\u0430\u0440\u0442 (\u0442\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u043e\u0432\u043e\u0439 \u0438\u0433\u0440\u044b). \u041e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u0435\u0440\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u0447\u0435\u0442 (\u043c\u0435\u0442\u043a\u0443 <strong>score<\/strong> \u0438\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0435 \u0432 UI, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0433\u0440\u044b). \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u0433\u0440\u0435 \u043c\u044b \u0431\u044b, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u0438 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0435\u0433\u043e \u0438\u043b\u0438 \u0435\u0435, \u201c\u0443\u0432\u0435\u0440\u0435\u043d\u044b\u201d \u043b\u0438 \u043e\u043d\u0438, \u0447\u0442\u043e \u0445\u043e\u0442\u044f\u0442 \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u0438\u0433\u0440\u0443 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u201c\u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0438\u201d \u043a\u0430\u0440\u0442, \u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043c\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u0438\u043b\u0438 \u043e\u043d\u0430 \u0437\u043d\u0430\u044e\u0442, \u0447\u0442\u043e \u043e\u043d\u0438 \u0434\u0435\u043b\u0430\u044e\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0436\u0438\u043c\u0430\u044e\u0442 \u043d\u0430 \u044d\u0442\u0443 \u043a\u043d\u043e\u043f\u043a\u0443.<\/p><\/blockquote>\n<p><span style=\"color: #373737;\">\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 storyboard. \u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447\u0442\u043e \u0433\u043e\u043b\u0443\u0431\u043e\u0439 \u0446\u0432\u0435\u0442 \u043d\u0430\u0434\u043f\u0438\u0441\u0438 \u043a\u0430\u043a \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f \u043c\u0435\u0442\u043a\u0438, \u043d\u0430 \u0437\u0435\u043b\u0435\u043d\u043e\u043c \u0444\u043e\u043d\u0435 \u043f\u043b\u043e\u0445\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u043c\u044b. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0446\u0432\u0435\u0442 \u0432\u0441\u0435\u0445 \u043d\u0430\u0434\u043f\u0438\u0441\u0435\u0439 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>Tint Color<\/strong> \u043d\u0430 \u0432\u0441\u0435\u0439 storyboard, \u0435\u0441\u043b\u0438 \u043d\u0430 \u00a0\u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0435 File Inspector (\u0424\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440<\/span>) \u0443\u043a\u0430\u0436\u0438\u0442\u0435 <strong>Global Tint<\/strong>:<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-1.54.28-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-373\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-1.54.28-AM-1024x996.png\" alt=\"\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u043d\u0430\u0434\u043f\u0438\u0441\u0435\u0439 \u043d\u0430 storyboard\" width=\"584\" height=\"568\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-1.54.28-AM-1024x996.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-1.54.28-AM-300x292.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-1.54.28-AM-308x300.png 308w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-1.54.28-AM.png 1426w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p><span style=\"color: #373737;\">\u0414\u0430\u0439\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 &#8216;Deal&#187;. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0430, \u00a0\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 action (\u043f\u0443\u0442\u0435\u043c Ctrl-\u043f\u0435\u0440\u0435\u0442\u044f\u0433\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u0410\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0435 \u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u043e\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 \u043a \u0444\u0430\u0439\u043b\u0443<strong> CardGameViewController.m<\/strong>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0438\u0433\u0440\u0443 Matchismo \u0437\u0430\u043d\u043e\u0432\u043e \u0438 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u0443\u0435\u0442 \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:<\/span><\/p>\n<p>[objc highlight=&#187;5,6&#8243;]<br \/>\n\/\/  CardGameViewController.m<br \/>\n\/\/  Assignment-2-iOS7<br \/>\n.  .  .  .  .  .  .  .  .  .  .<br \/>\n&#8212; (IBAction)dealPress:(id)sender {<br \/>\n    self.game = nil;<br \/>\n    [self updateUI];<br \/>\n}<br \/>\n.  .  .  .  .  .  .  .  .  .  .<br \/>\n[\/objc]<\/p>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/tree\/Task2\"><strong>Github<\/strong>.<\/a><\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 3<\/h2>\n<blockquote><p>\u041f\u0435\u0440\u0435\u0442\u044f\u043d\u0438\u0442\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c (<strong>UISwitch<\/strong>) \u0438\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f (<strong>UISegmentedControl)<\/strong> \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0430 \u0432\u0430\u0448 <strong>View<\/strong>, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u201c\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445\u201d \u043a\u0430\u0440\u0442 \u0432 \u0438\u0433\u0440\u0435: 2 \u043a\u0430\u0440\u0442\u044b \u0438\u043b\u0438 3 \u043a\u0430\u0440\u0442\u044b (\u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0440\u0435\u0436\u0438\u043c\u0430\u043c\u0438 \u201c2-\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u201d \u0438 \u00a0\u201c3-\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u201d). \u0414\u0430\u0439\u0442\u0435 \u0438\u0433\u0440\u043e\u043a\u0443 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0447\u043a\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442. \u0412 3-\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0447\u043a\u043e\u0432 (\u0445\u043e\u0442\u044f \u0438 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435\u0435) \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 3-\u0445 \u043a\u0430\u0440\u0442 \u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0443\u0445 \u0438\u0437 \u043d\u0438\u0445. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0441\u0435 3 \u043a\u0430\u0440\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u044b \u0438\u0437 \u0438\u0433\u0440\u044b (\u0445\u043e\u0442\u044f \u0441\u043e\u0432\u043f\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e 2 \u043a\u0430\u0440\u0442\u044b). \u00a0\u0412 3-\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0432\u044b\u0431\u043e\u0440 2-\u0445 \u043a\u0430\u0440\u0442 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435.<\/p><\/blockquote>\n<p><span style=\"color: #373737;\">\u041f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 storyboard \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0435\u0433\u043e \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-9.24.21-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-392 size-medium\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-9.24.21-PM-300x128.png\" alt=\"Assignment 2 task 2\" width=\"300\" height=\"128\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-9.24.21-PM-300x128.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-9.24.21-PM.png 678w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-07-13-at-9.24.21-PM-500x213.png 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #373737;\">\u041f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043c \u0435\u0433\u043e ( <strong>Ctrl<\/strong>-\u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0435\u043c ) \u043a\u0430\u043a \u00a0\u043a <strong>outlet<\/strong> property<\/span><\/p>\n<p>[objc highlight=&#187;1&#8243;]<br \/>\n@property (weak, nonatomic) IBOutlet UISegmentedControl *numberOfMatchesSegment;<\/p>\n<p>[\/objc]<\/p>\n<p><span style=\"color: #373737;\">\u0442\u0430\u043a \u0438 \u043a action<\/span><\/p>\n<p>[objc]<br \/>\n&#8212; (IBAction)changeNumberOfMatches {<br \/>\n    self.game =nil;<br \/>\n    [self updateUI];<br \/>\n}<br \/>\n[\/objc]<\/p>\n<p>. \u0415\u0441\u043b\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 <strong>action<\/strong>. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u043c\u0435\u043d\u044f\u0435\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0440\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c&#187;, \u0442\u043e \u0435\u0441\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0433\u0440\u044b, \u0442\u043e \u0438\u0433\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043d\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u0441\u043d\u0430\u0447\u0430\u043b\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0442\u0435 \u0436\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0447\u0442\u043e \u0438 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0435 \u043a\u0430\u0440\u0442. \u041d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u0447\u0438\u0442\u0430\u043d\u043e \u043f\u0440\u0438 &#171;\u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439&#187; \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0430\u043c\u043e\u0439 \u0438\u0433\u0440\u044b \u0432 \u043d\u0430\u0448\u0435\u043c <strong>CardGameViewController<\/strong>. \u041d\u043e \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0441\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c <strong>deck<\/strong>, \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043c \u0432\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435 ( \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043d\u0430\u043c \u044d\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 <strong>CardGameViewController<\/strong>) :<\/p>\n<p>[objc highlight=&#187;8,15&#8243;]<br \/>\n.  .  .  .  .  .<br \/>\n@implementation CardGameViewController<\/p>\n<p>&#8212; (CardMatchingGame *)game<br \/>\n{<br \/>\n    if (!_game) _game = [[CardMatchingGame alloc] initWithCardCount:[self.cardButtons count]<br \/>\n                                                          usingDeck:[self createDeck]];<br \/>\n    _game.numberOfMatches =[self numberOfMatches];<\/p>\n<p>    return _game;<br \/>\n}<\/p>\n<p>&#8212; (NSUInteger)numberOfMatches<br \/>\n{<br \/>\n    return self.numberOfMatchesSegment.selectedSegmentIndex+2;<br \/>\n}<\/p>\n<p>.  .  .  .<br \/>\n[\/objc]<\/p>\n<p>\u041d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 \u0438\u0433\u0440\u0443 (\u0432 <strong>public API<\/strong> \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 <strong>CardMatchingGame<\/strong>) \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445&#187; \u043a\u0430\u0440\u0442 \u0432 \u0438\u0433\u0440\u0435:<\/p>\n<p>[objc highlight=&#187;9&#8243;]<br \/>\n@interface CardMatchingGame : NSObject<\/p>\n<p>-(instancetype)initWithCardCount:(NSUInteger)count<br \/>\n                       usingDeck:(Deck *)deck;<\/p>\n<p>-(void)chooseCardAtIndex:(NSUInteger)index;<br \/>\n-(Card *)cardAtIndex:(NSUInteger)index;<\/p>\n<p>@property (nonatomic) NSUInteger numberOfMatches;<br \/>\n@property (nonatomic,readonly) NSInteger score;<\/p>\n<p>@end<br \/>\n[\/objc]<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0445&#187; \u043a\u0430\u0440\u0442 \u0432 \u0438\u0433\u0440\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u0435\u043d\u0435\u0435 2-\u0445, \u0442\u043e \u0432 \u0444\u0430\u0439\u043b \u0438\u043c\u043f\u043b\u0438\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b (<strong>CardMatchingGame.m<\/strong>) \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c <strong>setter<\/strong> \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <strong>numberOfMatches<\/strong>:<\/p>\n<p>[objc]<br \/>\n&#8212; (void)setNumberOfMatches:(NSUInteger)numberOfMatches<br \/>\n{<br \/>\n    _numberOfMatches = numberOfMatches &gt;= 2 ? numberOfMatches :2;<br \/>\n}<br \/>\n[\/objc]<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f&#187;<\/p>\n<p>[objc]<br \/>\n-(int)match:(NSArray *) otherCards<\/p>\n<p>[\/objc]<\/p>\n<p>\u0432 \u043a\u043b\u0430\u0441\u0441\u0435<strong> PlayingCard<\/strong> \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f <strong>n<\/strong> \u043a\u0430\u0440\u0442. \u041f\u043e \u0438\u0434\u0435\u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 <strong>n<\/strong> \u043a\u0430\u0440\u0442 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u044b\u0434\u0435\u043b\u044f\u0442\u044c \u043a\u0430\u0440\u0442\u0443, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u0432\u0441\u0435\u0445 \u0438\u043c\u0435\u044e\u0449\u0438\u0445\u0441\u044f \u043a\u0430\u0440\u0442, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0442\u0443, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 <strong>otherCards<\/strong> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 &#171;\u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435&#187; (<strong>isChoosen = True<\/strong>), \u043d\u043e \u043d\u0435 &#171;\u0441\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u0435&#187; \u0440\u0430\u043d\u0435\u0435 \u043a\u0430\u0440\u0442\u044b (<strong>isMatched = False<\/strong>). \u041a\u0430\u0436\u0434\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u043d\u0435\u0441\u0442\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435, \u0438 \u0435\u0441\u043b\u0438 \u043e\u0431\u0449\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 <strong>numberOfMatches-1<\/strong>, \u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0435\u043c, \u0447\u0442\u043e <strong>numberOfMatches<\/strong> \u043a\u0430\u0440\u0442 &#171;\u0441\u043e\u0432\u043f\u0430\u043b\u0438&#187;. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435&#187; \u043f\u043e \u043c\u0430\u0441\u0442\u0438 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 4 \u043e\u0447\u043a\u0430, \u0430 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435&#187; \u043f\u043e \u0440\u0430\u043d\u0433\u0443 \u0432 1 \u043e\u0447\u043a\u0430. \u0417\u0430\u0442\u0435\u043c \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043e\u0431\u0449\u0438\u0439 \u0441\u0447\u0435\u0442 \u043e\u0442 \u0432\u0441\u0435\u0445 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439.<\/p>\n<p>[objc]<br \/>\n-(int)match:(NSArray *)otherCards<br \/>\n{<br \/>\n    int score =0;<br \/>\n    int numMatches = 0;<br \/>\n    if ([otherCards count] &gt; 0)<br \/>\n    {<br \/>\n        for (int i = 0; i &lt; [otherCards count]; i++) {<br \/>\n            id otherCard1 = otherCards[i];<br \/>\n            if ([otherCard1 isKindOfClass:[PlayingCard class]])<br \/>\n            {<br \/>\n                PlayingCard *card1 = (PlayingCard *)otherCard1;<\/p>\n<p>                for (int j = i+1; j &lt; [otherCards count]; j++) {<br \/>\n                    id otherCard2 =otherCards[j];<br \/>\n                    if ([otherCard2 isKindOfClass:[PlayingCard class]])<br \/>\n                    {<br \/>\n                        PlayingCard *card2 =(PlayingCard *)otherCard2;<br \/>\n                        \/\/ check for the same suit<br \/>\n                        if ([card1.suit isEqualToString:card2.suit]) {<br \/>\n                            score += 1;<br \/>\n                            numMatches++;<br \/>\n                        }<br \/>\n                        \/\/ check for the same rank<br \/>\n                        if (card1.rank == card2.rank) {<br \/>\n                            score += 4;<br \/>\n                            numMatches++;<br \/>\n                        }<br \/>\n                    }<br \/>\n                }<br \/>\n            }<br \/>\n        }<\/p>\n<p>        if (numMatches &lt; [otherCards count] -1) score = 0;<br \/>\n    }<br \/>\n    return score;<br \/>\n}<br \/>\n[\/objc]<\/p>\n<p>\u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c &#171;\u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435&#187;, \u043d\u043e &#171;\u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u0435&#187; \u043a\u0430\u0440\u0442\u044b \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <strong>chooseCardAtIndex:<\/strong> \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b (<strong>CardMatchingGame.m<\/strong>). \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 <strong>CardMatchingGame<\/strong> \u043d\u043e\u0432\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e &#8212; \u043c\u0430\u0441\u0441\u0438\u0432 &#171;\u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445&#187;, \u043d\u043e &#171;\u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0432\u0448\u0438\u0445&#187; \u0440\u0430\u043d\u0435\u0435 \u043a\u0430\u0440\u0442:<\/p>\n<p>[objc highlight=&#187;7&#8243;]<br \/>\n#import &quot;CardMatchingGame.h&quot;<\/p>\n<p>@interface CardMatchingGame()<\/p>\n<p>@property (nonatomic, readwrite) NSInteger score;<br \/>\n@property (nonatomic, strong) NSMutableArray *cards; \/\/ of Card<br \/>\n@property (nonatomic,strong) NSMutableArray *faceUpCards; \/\/ of Card<\/p>\n<p>@end<br \/>\n.  .  .  .  .  .  .  .  .  .  .  .  .<br \/>\n[\/objc]<\/p>\n<p>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043d\u0430 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435&#187;:<\/p>\n<p>[objc highlight=&#187;16,19,21,22,25&#8243;]<br \/>\n@implementation CardMatchingGame<\/p>\n<p>.  .  .  .  .  .  .  .  .  .  .  .  .  .<br \/>\nstatic const int MISMATCH_PENALTY = 2;<br \/>\nstatic const int MATCH_BONUS = 4;<br \/>\nstatic const int COST_TO_CHOOSE = 1;<\/p>\n<p>-(void)chooseCardAtIndex:(NSUInteger)index<br \/>\n{<br \/>\n    Card *card = [self cardAtIndex:index];<br \/>\n    if (!card.isMatched) {<br \/>\n        if (card.isChosen) {<br \/>\n            card.chosen =NO;<br \/>\n        } else {<br \/>\n            \/\/ put choosen card in array self.faceUpCards<br \/>\n            self.faceUpCards= [[NSMutableArray alloc] initWithArray:@[card]];<br \/>\n            for (Card *otherCard in self.cards) {<br \/>\n                if (otherCard.isChosen &amp;&amp; !otherCard.isMatched) {<br \/>\n                    [self.faceUpCards insertObject:otherCard atIndex:0];<br \/>\n                    \/\/&#8212;&#8212;&#8212;&#8212;&#8212;- decision on match<br \/>\n                    if ([self.faceUpCards count] == (self.numberOfMatches)) {<br \/>\n                        int matchScore = [card match:self.faceUpCards];<br \/>\n                        if (matchScore) {<br \/>\n                            self.score += matchScore * MATCH_BONUS;<br \/>\n                            for (Card *faceUpCard in self.faceUpCards) {<br \/>\n                                faceUpCard.matched =YES;<br \/>\n                            }<\/p>\n<p>                        } else {<br \/>\n                            self.score -= MISMATCH_PENALTY;<br \/>\n                            for (Card *faceUpCard in self.faceUpCards) {<br \/>\n                                if (faceUpCard != card) faceUpCard.chosen =NO;<br \/>\n                            }<br \/>\n                        }<br \/>\n                        break;<br \/>\n                    } \/\/&#8212;&#8212;&#8212;&#8212;&#8212; end of decision on match<br \/>\n                }<br \/>\n            }<br \/>\n            card.chosen = YES;<br \/>\n            self.score -= COST_TO_CHOOSE;<br \/>\n        }<br \/>\n    }<br \/>\n}<br \/>\n.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .<br \/>\n[\/objc]<\/p>\n<p>\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u0432 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0435 7 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443, \u0435\u0441\u043b\u0438 \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 2-\u0445 \u043a\u0430\u0440\u0442 \u043f\u0440\u0438 3-\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u0435, \u0442\u043e \u043f\u0440\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 \u0440\u0430\u043d\u0433\u0430 \u043d\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0447\u0438\u0441\u043b\u044f\u0442\u044c\u0441\u044f 1 \u043e\u0447\u043a\u043e, \u0430 \u043f\u0440\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438 3-\u0445 \u043a\u0430\u0440\u0442 \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0440\u0430\u043d\u0433\u043e\u043c &#8212; 2 \u043e\u0447\u043a\u0430.<\/p>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430\u00a0<a href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/tree\/Task3\"><strong>Github<\/strong>.<\/a><\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 4<\/h2>\n<blockquote><p>\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u043d\u0435\u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u043c (disable) \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u201c2-\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0435\u00a0\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u201d \/ \u201c3-\u0445 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u201d (\u0442\u043e \u0435\u0441\u0442\u044c \u00a0\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c <strong>UISwitch <\/strong>\u0438\u043b\u0438 <strong>UISegmentedControl\u00a0<\/strong>\u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0438 3), \u043a\u043e\u0433\u0434\u0430 \u0438\u0433\u0440\u0430 \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c (\u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u0430 \u043a\u0430\u0440\u0442\u044b \u0432 \u0438\u0433\u0440\u0435) \u0438 \u0432\u043d\u043e\u0432\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u043c (re-enable), \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u201c\u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0430\u201d \u043a\u0430\u0440\u0442. (\u0442\u043e \u0435\u0441\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0430 Deal \u043d\u0430\u0436\u0430\u0442\u0430).<\/p><\/blockquote>\n<p><span style=\"color: #373737;\">\u0414\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043a\u0430\u0440\u0442\u044b \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 &#171;Deal&#187; \u0434\u043b\u044f &#171;\u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0438&#187; :<\/span><\/p>\n<p>[objc highlight=&#187;5,11&#8243;]<br \/>\n@implementation CardGameViewController<br \/>\n.  .  .  .  .  .  .  .  .  .  .  .  .<br \/>\n&#8212; (IBAction)touchCardButton:(id)sender<br \/>\n{<br \/>\n    self.numberOfMatchesSegment.enabled =NO;<br \/>\n    NSUInteger cardIndex = [self.cardButtons indexOfObject:sender];<br \/>\n    [self.game chooseCardAtIndex:cardIndex];<br \/>\n    [self updateUI];<br \/>\n}<br \/>\n&#8212; (IBAction)dealPress:(id)sender {<br \/>\n    self.numberOfMatchesSegment.enabled =YES;<br \/>\n    self.game = nil;<br \/>\n    [self updateUI];<br \/>\n}<br \/>\n.  .  .  .  .  .  .  .  .  .  .  .  .<br \/>\n[\/objc]<\/p>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430\u00a0<a href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/tree\/Task3\"><strong>Github<\/strong>.<\/a><\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 5<\/h2>\n<blockquote><p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0443\u044e \u043c\u0435\u0442\u043a\u0443, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0443\u044e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044f <strong>CardMatchingGame<\/strong> \u043a\u0430\u0440\u0442\u044b, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0439 \u0438\u0433\u0440\u043e\u043a\u043e\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \u201cMatched J\u2665\ufe0f J\u2660\ufe0f for 4 points.\u201d \u00a0\u0438\u043b\u0438 \u201c6\u2666\ufe0f J\u2663\ufe0f don\u2019t match! 2 point penalty!\u201d \u0438\u043b\u0438 \u201c8\u2666\ufe0f\u201d, \u0435\u0441\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u043a\u0430\u0440\u0442\u0430 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u201c\u043f\u0440\u043e\u0431\u0435\u043b\u201d, \u0435\u0441\u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043a\u0430\u0440\u0442 \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043e. \u041d\u0435 \u043d\u0430\u0440\u0443\u0448\u0430\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b <strong>MVC<\/strong> \u0438 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0439\u0442\u0435 UI \u0432 \u0432\u0430\u0448\u0435\u0439<strong> Model<\/strong>. \u041f\u043e\u0434 \u201cUI\u201d \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0435, \u0447\u0442\u043e \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u042d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u043e\u0432, \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0445 \u0432 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0438 3.<\/p><\/blockquote>\n<p><span style=\"color: #373737;\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043d\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0438 \u0433\u0434\u0435 \u0438\u0445 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437\u00a0<\/span><strong>\u041f\u0443\u043d\u043a\u0442 5<\/strong>, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u0430 \u043a\u0430\u0440\u0442\u044b \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e (\u0442\u043e \u0435\u0441\u0442\u044c \u044d\u0442\u043e <strong>View<\/strong> ) \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\u043c\u0438 (descriptions) \u043a\u0430\u0440\u0442, \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0435 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f&#187;. \u042d\u0442\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442 \u00a0\u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438, \u0438 \u00a0\u0438\u0445 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0447\u043a\u043e\u0432, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0438\u0433\u0440\u043e\u043a\u043e\u043c \u043f\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u0435&#187; \u043a\u0430\u0440\u0442\u044b \u0438 \u043e \u0432\u044b\u0438\u0433\u0440\u044b\u0448\u0435 \u0438\u043b\u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0448\u0435. \u041d\u043e <strong>View<\/strong> \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a\u0438\u0435 \u043a\u0430\u0440\u0442\u044b \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u0438 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0435\u043c\u0443 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043e &#171;\u0448\u0442\u0440\u0430\u0444\u0430\u0445&#187; \u0438 &#171;\u0431\u043e\u043d\u0443\u0441\u0430\u0445&#187; \u043f\u0440\u0438 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438&#187; \u0438\u043b\u0438 &#171;\u043d\u0435\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0438&#187; \u043a\u0430\u0440\u0442. \u042d\u0442\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u00a0<strong>Model<\/strong>, \u043d\u043e <strong>View<\/strong> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437<strong> Model<\/strong>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 <strong>API Model<\/strong> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u0430&#187; \u043a\u0430\u0440\u0442\u044b (\u043c\u0435\u0442\u043e\u0434 <em><strong>chooseCardAtIndex:<\/strong>) <\/em>, <strong>Controller<\/strong> \u043c\u043e\u0433 \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043c\u0430\u0441\u0441\u0438\u0432\u0443 \u043a\u0430\u0440\u0442, \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u0445 \u043d\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435, \u0438 \u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043e\u0447\u043a\u043e\u0432, \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f&#187;. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043a\u043b\u0430\u0441\u0441\u0430<strong> <em>CardMatchingGame.h<\/em><\/strong> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<p>[objc highlight=&#187;3,4,7&#8243;]<br \/>\n\/\/CardMatchingGame.h<br \/>\n&#8230;&#8230;&#8230;.<br \/>\n@property (strong,nonatomic) NSArray *matchedCards;<br \/>\n@property (readonly,nonatomic) NSInteger lastFlipPoints;<\/p>\n<p>\/\/CardMatchingGame.m<br \/>\n@property (readwrite,nonatomic) NSInteger lastFlipPoints;<br \/>\n&#8230;&#8230;.<br \/>\n[\/objc]<\/p>\n<p>\u041a\u0430\u0440\u0442\u044b, \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u043c\u044b\u0435 \u043d\u0430 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435&#187;, \u0443\u0436\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435<\/p>\n<p>[objc highlight=&#187;3&#8243;]<br \/>\n\/\/CardMatchingGame.m<br \/>\n&#8230;&#8230;.<br \/>\n@property (nonatomic,strong) NSMutableArray *faceUpCards; \/\/ of Card<br \/>\n&#8230;&#8230;.<br \/>\n[\/objc]<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u043a\u0430\u0440\u0442\u0443, \u0432<strong> Model<\/strong> \u00a0(\u043a\u043b\u0430\u0441\u0441\u00a0<span style=\"color: #000000;\"><strong><em>CardMatchingGame<\/em><\/strong><\/span>) \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 <em><strong><span style=\"color: #0000ff;\">\u00a0<span style=\"color: #000000;\">chooseCardAtIndex:<\/span><\/span><span style=\"color: #0000ff;\">\u00a0<\/span><\/strong>\u0438 \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u043a\u0430\u0440\u0442\u0430, \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0440\u0430\u043d\u0435\u0435 \u043d\u0435 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b\u0430&#187; \u00a0\u0438 \u0431\u044b\u043b\u0430 \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0430 &#171;\u043b\u0438\u0446\u043e\u043c&#187; \u0432\u043d\u0438\u0437, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 <span style=\"color: #000000;\"><strong>self.faceUpCards<\/strong><\/span>,<\/em> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c <span style=\"color: #000000;\"><em><strong>match:<\/strong><\/em><\/span> \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f&#187; \u043a\u0430\u0440\u0442. \u0412\u0441\u0435 \u044d\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0432 \u043d\u0430\u0448\u0435\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435, \u0438 \u043d\u0430\u043c \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c &#171;\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439&#187; \u043c\u0430\u0441\u0441\u0438\u0432\u00a0<span style=\"color: #000000;\"><strong><em>self.faceUpCards<\/em><\/strong> <\/span>\u0432 \u043c\u0430\u0441\u0441\u0438\u0432 <em><span style=\"color: #000000;\"><strong>self.matchedCards<\/strong><\/span>,<\/em> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u043f\u0440\u0435\u0434\u044a\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f API \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432\u043c\u0435\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <span style=\"color: #000000;\"><strong><em>self.score<\/em><\/strong><\/span> \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <span style=\"color: #000000;\"><strong><em>self.lastFlipPoints<\/em><\/strong><\/span>, \u00a0\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0435\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0432 \u043a\u043e\u043d\u0446\u0435 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0447\u0435\u0442.<br \/>\n\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u043c\u0435\u0442\u043e\u0434\u0430\u00a0<em><strong>chooseCardAtIndex:<\/strong><\/em><\/p>\n<p>[objc highlight=&#187;13,23,29,34,40,41&#8243;]<br \/>\nstatic const int MISMATCH_PENALTY = 2;<br \/>\nstatic const int MATCH_BONUS = 4;<br \/>\nstatic const int COST_TO_CHOOSE = 1;<\/p>\n<p>-(void)chooseCardAtIndex:(NSUInteger)index<br \/>\n{<br \/>\n    Card *card = [self cardAtIndex:index];<br \/>\n    if (!card.isMatched) {<br \/>\n        if (card.isChosen) {<br \/>\n            card.chosen =NO;<br \/>\n        } else {<br \/>\n            \/\/ match against another cards<br \/>\n            self.faceUpCards= [[NSMutableArray alloc] initWithArray:@[card]];<br \/>\n            self.lastFlipPoints = 0;<br \/>\n            for (Card *otherCard in self.cards) {<br \/>\n                if (otherCard.isChosen &amp;&amp; !otherCard.isMatched) {<br \/>\n                    [self.faceUpCards insertObject:otherCard atIndex:0];<br \/>\n                    \/\/ decision on match<br \/>\n                    if ([self.faceUpCards count] == (self.numberOfMatches)) {<\/p>\n<p>                        int matchScore = [card match:self.faceUpCards];<br \/>\n                        if (matchScore) {<br \/>\n                            self.lastFlipPoints = matchScore * MATCH_BONUS;<br \/>\n                            for (Card *faceUpCard in self.faceUpCards) {<br \/>\n                                faceUpCard.matched =YES;<br \/>\n                            }<\/p>\n<p>                        } else {<br \/>\n                            self.lastFlipPoints = &#8212; MISMATCH_PENALTY;<br \/>\n                            for (Card *faceUpCard in self.faceUpCards) {<br \/>\n                                if (faceUpCard != card) faceUpCard.chosen =NO;<br \/>\n                            }<br \/>\n                        }<br \/>\n                        self.matchedCards =[self.faceUpCards copy];<br \/>\n                        break;<br \/>\n                    }<br \/>\n                    \/\/ decision on match<br \/>\n                }<br \/>\n            }<br \/>\n            self.score+= self.lastFlipPoints &#8212; COST_TO_CHOOSE;<br \/>\n            self.matchedCards =[self.faceUpCards copy];<br \/>\n            card.chosen = YES;<br \/>\n        }<br \/>\n    }<br \/>\n}<br \/>\n\u00a0<br \/>\n[\/objc]<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/08\/Screen-Shot-2014-08-25-at-5.11.12-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-451 size-medium\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/08\/Screen-Shot-2014-08-25-at-5.11.12-PM-300x170.png\" alt=\"Screen Shot 2014-08-25 at 5.11.12 PM\" width=\"300\" height=\"170\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/08\/Screen-Shot-2014-08-25-at-5.11.12-PM-300x170.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/08\/Screen-Shot-2014-08-25-at-5.11.12-PM-500x283.png 500w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/08\/Screen-Shot-2014-08-25-at-5.11.12-PM.png 674w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><span style=\"color: #373737;\">\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u043a\u0443 \u043d\u0430 \u043d\u0430\u0448 storyboard. \u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u0435\u0442\u043a\u0430 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0430 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438\u0433\u0440\u044b, \u0442\u043e \u043c\u044b \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d\u044b \u0443\u0431\u0440\u0430\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0442\u0435\u043a\u0441\u0442 \u0441 \u0432 \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u043a\u0435 (\u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435). \u042d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0430\u0448\u0443 \u043c\u0435\u0442\u043a\u0443 \u043d\u0435\u0432\u0438\u0434\u0438\u043c\u043e\u0439 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u044d\u0442\u043e \u043d\u0430\u043f\u0440\u044f\u0433\u0430\u0435\u0442, \u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0442\u0430\u043c \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0442\u0435\u043a\u0441\u0442, \u0430 \u0437\u0430\u0442\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u00a0<strong><em>viewDidLoad<\/em><\/strong>, \u0435\u0433\u043e \u0443\u0431\u0440\u0430\u0442\u044c. \u041c\u044b \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c.<\/span><\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c outlet \u043a \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u043a\u0435:<\/p>\n<p>[objc]<\/p>\n<p>@property (weak, nonatomic) IBOutlet UILabel *resultsLabel;<\/p>\n<p>[\/objc]<\/p>\n<p>\u041c\u0435\u0442\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u044f\u043a\u0438\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 ( \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430 <span style=\"color: #000000;\"><strong><em>updateUI <\/em><\/strong><\/span>) \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043d\u043e\u0432\u044b\u0445 public \u00a0\u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b, \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u0430 <span style=\"color: #0000ff;\"><strong><em><span style=\"color: #000000;\">CardMatchingGame<\/span>. <\/em><\/strong><span style=\"color: #000000;\">\u041c\u044b\u00a0<\/span><\/span><span style=\"color: #000000;\">\u00a0\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f\u043c\u0438 &#171;\u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445&#187; \u043a\u0430\u0440\u0442, \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u043c, \u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043d\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u043e\u0447\u043a\u043e\u0432 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043c\u0435\u0442\u043e\u0434\u00a0<strong style=\"color: #333333;\"><em>updateUI<\/em><\/strong><\/span>\u00a0\u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430\u00a0<span style=\"color: #000000;\">\u00a0<strong><em>updateFlipResult<\/em><\/strong><\/span><span style=\"color: #0000ff;\">:<\/span><\/p>\n<p>[objc]<br \/>\n&#8212; (void)updateUI<br \/>\n{<br \/>\n&#8230;&#8230;.<br \/>\n        [self updateFlipResult];<br \/>\n}<\/p>\n<p>[\/objc]<\/p>\n<p>\u0410 \u043c\u0435\u0442\u043e\u0434 <span style=\"color: #000000;\"><strong><em>updateFlipResult<\/em><\/strong>\u00a0<\/span>\u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043d\u043e\u0432\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b self.game &#8212; <span style=\"color: #000000;\"><strong><em>self.game.machedCards <\/em><\/strong><\/span>\u0438 <span style=\"color: #000000;\"><strong><em>self.game.lastFlipPoints<\/em><\/strong><\/span>:<\/p>\n<p>[objc highlight=&#187;4,7,8,10,13,17, 26&#8243;]<br \/>\n-(void)updateFlipResult<br \/>\n{<br \/>\n NSString *text=@&quot; &quot;;<br \/>\n if ([self.game.matchedCards count]&gt;0)<br \/>\n {<br \/>\n text = [ text stringByAppendingString:<br \/>\n [self.game.matchedCards componentsJoinedByString:@&quot; &quot;]];<br \/>\n if ([self.game.matchedCards count] == [self numberOfMatches])<br \/>\n {<br \/>\n if (self.game.lastFlipPoints&lt;0) {<br \/>\n text = [ text stringByAppendingString:<br \/>\n [NSString stringWithFormat:@&quot;\u2718 %ld penalty&quot;,<br \/>\n (long)self.game.lastFlipPoints]];<br \/>\n } else {<br \/>\n text = [ text stringByAppendingString:<br \/>\n [NSString stringWithFormat:@&quot;\u2714 +%ld bonus&quot;,<br \/>\n (long)self.game.lastFlipPoints]];<br \/>\n }<br \/>\n } else text =[self textForSingleCard];<br \/>\n } else text = @&quot;Play game!&quot;;<br \/>\n self.resultsLabel.text = text;<br \/>\n}<\/p>\n<p>&#8212; (NSString *)textForSingleCard<br \/>\n{<br \/>\n Card *card = [self.game.matchedCards lastObject];<br \/>\n return [NSString stringWithFormat:@&quot; %@ flipped %@&quot;,card,(card.isChosen) ? @&quot;up!&quot; : @&quot;back!&quot;];<br \/>\n}<br \/>\n[\/objc]<\/p>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <strong><a href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/tree\/Task5\">Github<\/a><\/strong>.<\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 6<\/h2>\n<blockquote><p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \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 (UI) \u0432\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u044b \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b\u043e 30 \u043a\u0430\u0440\u0442 \u0432\u043c\u0435\u0441\u0442\u043e 12. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438\u00a0\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043a\u0430\u0440\u0442.<\/p><\/blockquote>\n<p><span style=\"color: #373737;\">\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0430\u0440\u0442 &#8212; \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0418\u043d\u0441\u043f\u0435\u043a\u0442\u043e\u0440 \u0420\u0430\u0437\u043c\u0435\u0440\u0430 ( Size Inspector) \u0432 \u041e\u0431\u043b\u0430\u0441\u0442\u0438 \u0423\u0442\u0438\u043b\u0438\u0442 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 ( \u043d\u0430 \u0440\u0438\u0441. \u043d\u0438\u0436\u0435 40\u044560 ) \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a \u0438\u0437 6-\u0442\u0438 \u043a\u0430\u0440\u0442 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u043d\u044e Edit -&gt; Duplicate, \u0430 \u0442\u0430\u043a\u0436\u0435 Copy &#8212; Paste. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0432\u0430\u0448\u0438 \u043a\u0430\u0440\u0442\u044b \u043a outlet<\/span><\/p>\n<p>[objc]<\/p>\n<p>@property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *cardButtons;<\/p>\n<p>[\/objc]<\/p>\n<p><span style=\"color: #373737;\">\u0432 \u0432\u0430\u0448\u0435\u043c \u00a0viewController.<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-8.07.48-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-460 size-large\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-8.07.48-PM-1024x569.png\" alt=\"Assignment 2 Task 6\" width=\"584\" height=\"324\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-8.07.48-PM-1024x569.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-8.07.48-PM-300x166.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-8.07.48-PM-500x278.png 500w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0444\u043e\u043d\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430\u0445 \u043d\u0430 System 14.0<br \/>\n\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <strong><a href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/tree\/Task6\">Github.<\/a><\/strong><\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 7<\/h2>\n<blockquote><p>\u041d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443 \u043b\u044e\u0431\u044b\u0445 public \u043c\u0435\u0442\u043e\u0434\u043e\u0432 (\u0421\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 &#8212; \u044d\u0442\u043e \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430 \u0438 \u0442\u0438\u043f\u043e\u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0421\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0432 \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443 \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442 \u043d\u0438 \u0438\u043c\u044f \u043c\u0435\u0442\u043e\u0434\u0430, \u043d\u0438 \u0438\u043c\u0435\u043d\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432) , \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u0430 \u043b\u0435\u043a\u0446\u0438\u0438. \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u0443 private \u043c\u0435\u0442\u043e\u0434\u043e\u0432 (\u0445\u043e\u0442\u044f \u0432\u0440\u044f\u0434 \u043b\u0438 \u0432\u0430\u043c \u044d\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f) \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c public \u0438\/\u0438\u043b\u0438 private \u043c\u0435\u0442\u043e\u0434\u044b.<\/p><\/blockquote>\n<p>&#8230; \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e.<\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 8 ( \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 1 )<\/h2>\n<blockquote><p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a <strong>UISlider<\/strong><b>\u00a0<\/b>\u043a UI, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u0435 \u043f\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432\u044b\u0431\u043e\u0440\u0430 \u043a\u0430\u0440\u0442\u044b \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u043e\u0447\u043d\u043e\u0439 \u0438\u0433\u0440\u0435 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e (\u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0430<strong> UISlider <\/strong>\u0431\u0443\u0434\u0435\u0442 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043c\u0435\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0432 \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0438 5 \u0434\u043b\u044f \u043f\u043e\u043a\u0430\u0437\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438\u0433\u0440\u044b). \u041a\u043e\u0433\u0434\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0448\u043b\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u00a0\u0447\u0442\u043e\u0431\u044b \u0442\u0435\u043a\u0441\u043e\u0432\u0430\u044f \u043c\u0435\u0442\u043a\u0430 \u0431\u044b\u043b\u0430 \u0441\u0435\u0440\u043e\u0439 \u0438\u043b\u0438 \u0435\u0449\u0435 \u0447\u0435\u043c-\u0442\u043e (\u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043d\u0430 \u043c\u0435\u0442\u043e\u0434 <strong>alpha<\/strong><b>\u00a0<\/b>\u043a\u043b\u0430\u0441\u0441\u0430 <strong>UIView<\/strong> \u0438 \u0437\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447\u0442\u043e <strong>UISlider<\/strong> \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0442 \u00a0<strong>UIView)<\/strong> \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u201c\u043f\u0440\u043e\u0448\u043b\u043e\u0435\u201d. \u0418 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u043e\u0432\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u043a\u0430\u0440\u0442\u044b, \u0432\u044b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u201c\u043f\u0440\u044b\u0433\u043d\u0443\u0442\u044c \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435\u201d \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0435. \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442 \u0432\u0430\u0441 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u0430 \u0441 API \u043a\u043b\u0430\u0441\u0441\u0430 <strong>UISlider<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0432\u0430\u0448 Controller \u0434\u043b\u044f \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u0438. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u0434\u044e\u0436\u0438\u043d\u043e\u0439 \u00a0(12) \u0441\u0442\u0440\u043e\u043a \u043a\u043e\u0434\u0430.<\/p><\/blockquote>\n<p><span style=\"color: #373737;\">\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432 \u043a\u0430\u0440\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0432\u043d\u043e\u0441\u0438\u0442 \u0432 \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0433\u0440\u044b, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432&#187; \u0432 \u043d\u0430\u0448\u0435\u043c \u00a0<strong>viewController<\/strong>. \u00a0\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0438 \u0435\u0433\u043e &#171;\u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0435&#187; \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u00a0\u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 (lazy instantiation) \u00a0:<\/span><\/p>\n<p>[objc]<br \/>\n@interface CardGameViewController ()<br \/>\n&#8230;&#8230;<br \/>\n@property (strong,nonatomic) NSMutableArray *flipsHistory;<br \/>\n&#8230;&#8230;<br \/>\n&#8212; (NSMutableArray *)flipsHistory<br \/>\n{<br \/>\n    if (!_flipsHistory)_flipsHistory = [[NSMutableArray alloc] init];<br \/>\n    return _flipsHistory;<br \/>\n}<\/p>\n<p>[\/objc]<\/p>\n<p>&#171;\u0417\u0430\u043f\u0438\u0441\u044c&#187; \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <strong><em>updateFlipResult<\/em><\/strong>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u0430&#187; \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b:<\/p>\n<p>[objc highlight=&#187;4&#8243;]<br \/>\n-(void)updateFlipResult<br \/>\n{<br \/>\n&#8230;&#8230;&#8230;.<br \/>\n        [self.flipsHistory addObject:text];<br \/>\n    } else text = @&quot;Play game!&quot;;<br \/>\n    self.resultsLabel.text = text;<br \/>\n}<\/p>\n<p>[\/objc]<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u044b \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 &#171;Deal&#187; \u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0438 \u043a\u0430\u0440\u0442, \u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432&#187; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 nil:<\/p>\n<p>[objc highlight=&#187;4&#8243;]<br \/>\n&#8212; (IBAction)Deal:(UIButton *)sender<br \/>\n{<br \/>\n&#8230;&#8230;..<br \/>\n    self.flipsHistory =nil;<br \/>\n    [self updateUI];<br \/>\n}<\/p>\n<p>[\/objc]<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a (slider) \u043d\u0430 \u0432\u0430\u0448 storyboard, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0432 0 (\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0443 \u043d\u0430\u0441 \u043d\u0435\u0442 \u0438\u0441\u0442\u043e\u0440\u0438\u0438) :<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-9.31.14-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-463 size-medium\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-9.31.14-PM-300x234.png\" alt=\"Assignment 2 Task 8\" width=\"300\" height=\"234\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-9.31.14-PM-300x234.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-9.31.14-PM-383x300.png 383w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-25-at-9.31.14-PM.png 688w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #373737;\">\u041f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435 \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043a outlet property\u00a0\u0438 \u043a \u00a0action.<\/span><\/p>\n<p>[objc highlight=&#187;3,6&#8243;]<br \/>\n@interface CardGameViewController ()<br \/>\n&#8230;&#8230;&#8230;&#8230;..<br \/>\n@property (weak, nonatomic) IBOutlet UISlider *historySlider;<br \/>\n@end<br \/>\n&#8230;&#8230;<br \/>\n&#8212; (IBAction)takeHistory:(UISlider *)sender {<\/p>\n<p>}<br \/>\n&#8230;&#8230;&#8230;&#8230;<br \/>\n[\/objc]<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.23.04-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-464\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.23.04-AM.png\" alt=\"Assignment 2 Task 8\" width=\"2438\" height=\"1314\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.23.04-AM.png 2438w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.23.04-AM-300x161.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.23.04-AM-1024x551.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.23.04-AM-500x269.png 500w\" sizes=\"auto, (max-width: 2438px) 100vw, 2438px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.27.29-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-465\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.27.29-AM.png\" alt=\"Assignment 2 Task 8\" width=\"2374\" height=\"1348\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.27.29-AM.png 2374w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.27.29-AM-300x170.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.27.29-AM-1024x581.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-11.27.29-AM-500x283.png 500w\" sizes=\"auto, (max-width: 2374px) 100vw, 2374px\" \/><\/a><\/p>\n<p><span style=\"color: #373737;\">\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u00a0(values) \u0432\u0432\u0438\u0434\u0435 \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0442\u043e\u0447\u043a\u043e\u0439. \u041d\u043e \u0443 \u043d\u0430\u0441 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u044c \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043a \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u043d\u0430\u0448\u0435\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0435 \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u0441 &#171;\u0442\u0435\u043a\u0443\u0449\u0435\u0439&#187; \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u00a0alpha \u043c\u0435\u0442\u043a\u0438 \u0441 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u0440\u043e\u0448\u043b\u043e\u043c &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u0435&#187; \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0435\u0442\u043a\u0443 \u0431\u043e\u043b\u0435\u0435 &#171;\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0439&#187; (translucent), \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u043a\u0438 \u043d\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u044d\u0442\u043e\u0433\u043e \u00a0\u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u0430&#187;. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u043b\u0435\u0447\u0435\u043c\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0430 \u0438 \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u0442\u044c &#171;\u0442\u0435\u043a\u0443\u0449\u0443\u044e&#187; \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0438 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u043c\u0435\u0442\u043a\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 &#171;\u0438\u0441\u0442\u043e\u0440\u0438\u0438&#187;. \u0422\u0430\u043a \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 &#171;\u0438\u0441\u0442\u043e\u0440\u0438\u044f&#187; &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432&#187; \u043a\u0430\u0440\u0442, \u0442\u043e \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440 &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u0430&#187;.\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u00a0<\/span><\/p>\n<p>[objc highlight=&#187;3&#8243;]<br \/>\n@interface CardGameViewController ()<br \/>\n&#8230;&#8230;&#8230;<br \/>\n@property (nonatomic) int flipCount;<br \/>\n&#8230;&#8230;.<br \/>\n@end<br \/>\n[\/objc]<\/p>\n<p>\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432&#187; \u0432 \u043d\u0430\u0448\u0435\u0439 \u0438\u0433\u0440\u0435. \u0414\u043b\u044f \u043b\u043e\u0433\u0438\u043a\u0438 \u0438\u0433\u0440\u044b \u044d\u0442\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u044d\u0442\u043e \u0432 \u043d\u0430\u0448\u0435\u043c <strong>viewController<\/strong>. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432&#187; \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043d\u0430\u0436\u0430\u0442\u0438\u0439 \u043a\u043d\u043e\u043f\u043e\u043a \u043a\u0430\u0440\u0442 \u0438\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043d\u0438\u0439 \u043c\u0435\u0442\u043e\u0434\u0430 <strong><em>\u00a0touchCardButton:<\/em><\/strong>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043c \u0438 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432:<\/p>\n<p>[objc highlight=&#187;6&#8243;]<br \/>\n&#8212; (IBAction)touchCardButton:(id)sender<br \/>\n{<br \/>\n    self.numberOfMatchesSegment.enabled =NO;<br \/>\n    NSUInteger cardIndex = [self.cardButtons indexOfObject:sender];<br \/>\n    [self.game chooseCardAtIndex:cardIndex];<br \/>\n    self.flipCount++;<br \/>\n    [self updateUI];<br \/>\n}<br \/>\n[\/objc]<\/p>\n<p>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432&#187; \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 0 \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0438 \u043a\u0430\u0440\u0442<\/p>\n<p>[objc highlight=&#187;3&#8243;]<br \/>\n&#8212; (IBAction)dealPress:(id)sender {<br \/>\n&#8230;&#8230;..<br \/>\n    self.flipCount =0;<br \/>\n&#8230;&#8230;..<br \/>\n}<\/p>\n<p>[\/objc]<\/p>\n<p>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432&#187; \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0430 UI \u0432 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u043c\u0435\u0442\u043a\u0435<\/p>\n<p>[objc highlight=&#187;3&#8243;]<br \/>\n@interface CardGameViewController ()<br \/>\n&#8230;&#8230;&#8230;<br \/>\n@property (weak, nonatomic) IBOutlet UILabel *sliderMaxLabel;<br \/>\n&#8230;&#8230;.<br \/>\n@end<br \/>\n[\/objc]<\/p>\n<p>, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0430<\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-12.25.59-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-467\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-12.25.59-PM.png\" alt=\"Assignment 2 Task 8\" width=\"2122\" height=\"1282\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-12.25.59-PM.png 2122w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-12.25.59-PM-300x181.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-12.25.59-PM-1024x618.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-12.25.59-PM-496x300.png 496w\" sizes=\"auto, (max-width: 2122px) 100vw, 2122px\" \/><\/a><br \/>\n\u0412\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0443. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043d\u0430\u0447\u0430\u043b \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043c\u0435\u0441\u0442\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u044d\u043a\u0440\u0430\u043d\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <strong><em>updateUI<\/em><\/strong>. \u042d\u0442\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 &#171;\u0442\u0435\u043a\u0443\u0449\u0435\u0435&#187; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 &#171;\u043f\u0435\u0440\u0435\u0432\u043e\u0440\u043e\u0442\u043e\u0432&#187;. \u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c &#171;\u0442\u0435\u043a\u0443\u0449\u0435\u0435&#187; \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u043c\u0435\u0442\u043a\u0435 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0430:<\/p>\n<p>[objc highlight=&#187;4,5,6&#8243;]<br \/>\n&#8212; (void)updateUI<br \/>\n{<br \/>\n&#8230;&#8230;&#8230;<br \/>\n    self.historySlider.maximumValue = self.flipCount;<br \/>\n    [self.historySlider setValue:(float)self.flipCount animated:YES];<br \/>\n    self.sliderMaxLabel.text = [NSString stringWithFormat:@&quot;%d&quot;,(int)ceilf(self.historySlider.maximumValue)];<br \/>\n}<\/p>\n<p>[\/objc]<\/p>\n<p>\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0438 \u043f\u043e\u043b\u0437\u0443\u043d\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 action \u043c\u0435\u0442\u043e\u0434 <strong><em>takeHistory:<\/em><\/strong><\/p>\n<p>[objc highlight=&#187;1&#8243;]<br \/>\n&#8212; (IBAction)takeHistory:(UISlider *)sender {<br \/>\n    int selectedIndex = (int) sender.value;<br \/>\n    if (selectedIndex &lt;0 || (selectedIndex &gt; self.flipCount-1)) return;<br \/>\n    self.resultsLabel.alpha = (selectedIndex &lt; self.flipCount-1 ) ? 0.5 : 1.0;<br \/>\n    NSString *text = [NSString stringWithFormat:@&quot;%d:&quot;,(selectedIndex+1)];<br \/>\n    self.resultsLabel.text = [text stringByAppendingString:[self.flipsHistory objectAtIndex:selectedIndex]];<br \/>\n}<\/p>\n<p>[\/objc]<\/p>\n<p>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/releases\/tag\/Task8\"><strong>Github<\/strong>.<\/a><\/p>\n<h2 style=\"padding-left: 120px;\">\u041f\u0443\u043d\u043a\u0442 9 ( \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 2 )<\/h2>\n<blockquote><p>\u041f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a\u0430\u0440\u0442\u044b (\u0442\u043e \u0435\u0441\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043e\u0442 \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430 Stanford). \u0410 \u0442\u0430\u043a\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438\u043a\u043e\u043d\u043a\u0438 \u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Matchismo \u0438 \u0434\u043b\u044f \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u041f\u043e\u043f\u044b\u0442\u0430\u0439\u0442\u0435\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u043a\u043e\u043d\u043a\u0438: Application \u0438 Launch. \u041e\u0442\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0431\u043e\u0434\u0443 \u0441\u0432\u043e\u0435 \u0432\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u0442\u0438\u0445 \u0438\u043a\u043e\u043d\u043e\u043a.<\/p><\/blockquote>\n<p><span style=\"color: #373737;\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0432\u043e\u044e \u043b\u044e\u0431\u0438\u043c\u0443\u044e \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u044c\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a\u0430\u0440\u0442\u044b, \u0438 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0432 \u0434\u0432\u0443\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u0430\u0445 \u00a040\u00d760 \u0438 80\u00d7120. \u0412 Xcode \u0432 \u043d\u0430\u0432\u0438\u0433\u0430\u0442\u043e\u0440\u0435 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0430\u043f\u043a\u0443 \u00a0<strong>image assets<\/strong> \u0438 \u043f\u0435\u0440\u0435\u0442\u044f\u043d\u0438\u0442\u0435 \u0442\u0443\u0434\u0430 \u0441\u0432\u043e\u0438 \u043d\u043e\u0432\u044b\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a\u0430\u0440\u0442\u044b:<\/span><\/p>\n<p style=\"padding-left: 120px;\"><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-1.42.34-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-469 size-thumbnail\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-1.42.34-PM-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p><span style=\"color: #373737;\">\u0414\u043b\u044f \u0438\u043a\u043e\u043d\u043a\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e 3 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u00a02*29pt = 58\u00d758, 2*40pt = 80\u00d780 and 2*60pt = 120\u00d7120. \u0422\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0438\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0442\u044f\u043d\u0443\u0442\u044c \u0432 \u0432\u0430\u0448 \u00a0image assets:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.36.02-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-471 size-full\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.36.02-PM.png\" alt=\"App icon\" width=\"1082\" height=\"482\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.36.02-PM.png 1082w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.36.02-PM-300x133.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.36.02-PM-1024x456.png 1024w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.36.02-PM-500x222.png 500w\" sizes=\"auto, (max-width: 1082px) 100vw, 1082px\" \/><\/a><\/p>\n<p><span style=\"color: #373737;\">\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f launch images \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0441\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430<strong> iPhone simulator<\/strong> (\u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0435 iPhone), \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430 3.5-\u0434\u044e\u0439\u043c\u043e\u0432\u043e\u043c \u0438 \u043e\u0434\u0438 \u0440\u0430\u0437 \u043d\u0430 \u00a04-\u0434\u044e\u0439\u043c\u043e\u0432\u043e\u043c \u0438 \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 screen shots (<\/span><em style=\"color: #373737;\">cmd-s<\/em><span style=\"color: #373737;\">). The launch images \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u044d\u043a\u0440\u0430\u043d\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u043a\u0441\u0442\u0430 \u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f. \u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u00a0screen shots \u0438 \u0443\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0441\u0435 \u0442\u0435\u043a\u0441\u0442\u044b \u0438 \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. \u0414\u043b\u044f Matchismo \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043c\u0435\u0442\u043a\u0443 \u0441\u0447\u0435\u0442\u0430, \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u0435\u0440\u0435\u0441\u0434\u0430\u0447\u0438 \u043a\u0430\u0440\u0442, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u0434\u043b\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u0430\u0440\u0442, \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043d\u0430 &#171;\u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435&#187; ( 2 \u043a\u0430\u0440\u0442\u044b\/ 3 \u043a\u0430\u0440\u0442\u044b) \u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u00a0the status bar \u0432 \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/iOS-Simulator-Screen-shot-Aug-26-2014-2.40.09-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-472 size-medium\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/iOS-Simulator-Screen-shot-Aug-26-2014-2.40.09-PM-200x300.png\" alt=\"iOS Simulator Screen shot Aug 26, 2014, 2.40.09 PM\" width=\"200\" height=\"300\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/iOS-Simulator-Screen-shot-Aug-26-2014-2.40.09-PM-200x300.png 200w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/iOS-Simulator-Screen-shot-Aug-26-2014-2.40.09-PM.png 640w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a><\/p>\n<p><span style=\"color: #373737;\">\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u0432\u0430 launch images \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u00a0640\u00d7960 and 640\u00d71136, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0442\u044f\u043d\u0443\u0442\u044c \u0432 \u0432\u0430\u0448 \u00a0image assets:<\/span><\/p>\n<p><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.58.15-PM.png\"><br \/>\n<\/a><a href=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.59.17-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-474 size-medium\" src=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.59.17-PM-300x158.png\" alt=\"Screen Shot 2014-08-26 at 2.59.17 PM\" width=\"300\" height=\"158\" srcset=\"https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.59.17-PM-300x158.png 300w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.59.17-PM-500x263.png 500w, https:\/\/bestkora.com\/IosDeveloper\/wp-content\/uploads\/2014\/07\/Screen-Shot-2014-08-26-at-2.59.17-PM.png 622w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #373737;\">The complete code is available on <strong><a href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/releases\/tag\/Task9\">G<\/a><\/strong><\/span><strong><a href=\"https:\/\/github.com\/BestKora\/Assignment-2-iOS7\/releases\/tag\/Task9\">ithub<span style=\"color: #373737;\">.<\/span><\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0422\u0435\u043a\u0441\u0442 \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430\u00a0\u00a0iTunes \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 \u00a0\u201cDeveloping iOS 7 app:Assignment 2\u2033.\u00a0\u041d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435\u00a0 \u041f\u0443\u043d\u043a\u0442 1 \u0421\u043b\u0435\u0434\u0443\u0439\u0442\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 \u0441\u043b\u0430\u0439\u0434\u0430\u0445 \u043b\u0435\u043a\u0446\u0438\u0438 (\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442) \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Matchismo, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043d\u0430 \u043b\u0435\u043a\u0446\u0438\u0438 (\u0442\u043e \u0435\u0441\u0442\u044c &hellip; <a href=\"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/\">\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":[6,16,5,4],"tags":[32,19,30],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-assignment","category-ios-7","category-stanford-cs-193p-ios7","category-domashnee-zadanie","tag-ios-7","tag-objective-c","tag-domashnee-zadanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 Xcode \u0438 Objective-C \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 MVC, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 actions \u0438 outlets, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS 7 SDK.\" \/>\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=\"stanford cs 193p,ios 7,developing ios apps,\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 ios,objective-c\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/\" \/>\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=\"Stanford CS 193P iOS 7 - \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2 | \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=\"\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 Xcode \u0438 Objective-C \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 MVC, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 actions \u0438 outlets, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS 7 SDK.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2014-07-12T19:22:41+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-09-25T08:56:48+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Stanford CS 193P iOS 7 - \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2 | \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=\"\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 Xcode \u0438 Objective-C \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 MVC, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 actions \u0438 outlets, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS 7 SDK.\" \/>\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\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#article\",\"name\":\"Stanford CS 193P iOS 7 - \\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435 2 | \\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\":\"Stanford CS 193P iOS 7 &#8212; \\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435 2\",\"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\\\/2014\\\/07\\\/Screen-Shot-2014-07-13-at-3.34.28-PM.png\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#articleImage\",\"width\":2112,\"height\":1530},\"datePublished\":\"2014-07-12T19:22:41+00:00\",\"dateModified\":\"2017-09-25T08:56:48+00:00\",\"inLanguage\":\"ru-RU\",\"commentCount\":6,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#webpage\"},\"articleSection\":\"Assignment, iOS 7, Stanford CS 193P iOS 7, \\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435, iOS 7, Objective-C, \\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#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\\\/domashnee-zadanie\\\/#listItem\",\"name\":\"\\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/domashnee-zadanie\\\/#listItem\",\"position\":2,\"name\":\"\\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435\",\"item\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/domashnee-zadanie\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#listItem\",\"name\":\"Stanford CS 193P iOS 7 &#8212; \\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435 2\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#listItem\",\"position\":3,\"name\":\"Stanford CS 193P iOS 7 &#8212; \\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435 2\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/category\\\/domashnee-zadanie\\\/#listItem\",\"name\":\"\\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#person\",\"name\":\"tatiana.kornilova@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#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\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#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\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#webpage\",\"url\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/\",\"name\":\"Stanford CS 193P iOS 7 - \\u0414\\u043e\\u043c\\u0430\\u0448\\u043d\\u0435\\u0435 \\u0437\\u0430\\u0434\\u0430\\u043d\\u0438\\u0435 2 | \\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\":\"\\u0413\\u043b\\u0443\\u0431\\u043e\\u043a\\u043e\\u0435 \\u0432\\u0437\\u0430\\u0438\\u043c\\u043e\\u0434\\u0435\\u0439\\u0441\\u0442\\u0432\\u0438\\u044f \\u0441 Xcode \\u0438 Objective-C \\u043d\\u0430 \\u043e\\u0441\\u043d\\u043e\\u0432\\u0435 MVC, \\u0441\\u043e\\u0437\\u0434\\u0430\\u043d\\u0438\\u0435 \\u0441\\u0432\\u043e\\u0438\\u0445 \\u0441\\u043e\\u0431\\u0441\\u0442\\u0432\\u0435\\u043d\\u043d\\u044b\\u0445 actions \\u0438 outlets, \\u0432\\u0437\\u0430\\u0438\\u043c\\u043e\\u0434\\u0435\\u0439\\u0441\\u0442\\u0432\\u0443\\u044e\\u0449\\u0438\\u0445 \\u0441 \\u044d\\u043b\\u0435\\u043c\\u0435\\u043d\\u0442\\u0430\\u043c\\u0438 iOS 7 SDK.\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/stanford-cs-193p-ios-7-domashnee-zadanie-2\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/bestkora.com\\\/IosDeveloper\\\/author\\\/tatiana-lornilovagmail-com\\\/#author\"},\"datePublished\":\"2014-07-12T19:22:41+00:00\",\"dateModified\":\"2017-09-25T08:56:48+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":"Stanford CS 193P iOS 7 - \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2 | \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":"\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 Xcode \u0438 Objective-C \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 MVC, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 actions \u0438 outlets, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS 7 SDK.","canonical_url":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"stanford cs 193p,ios 7,developing ios apps,\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 ios,objective-c","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#article","name":"Stanford CS 193P iOS 7 - \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2 | \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":"Stanford CS 193P iOS 7 &#8212; \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2","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\/2014\/07\/Screen-Shot-2014-07-13-at-3.34.28-PM.png","@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#articleImage","width":2112,"height":1530},"datePublished":"2014-07-12T19:22:41+00:00","dateModified":"2017-09-25T08:56:48+00:00","inLanguage":"ru-RU","commentCount":6,"mainEntityOfPage":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#webpage"},"isPartOf":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#webpage"},"articleSection":"Assignment, iOS 7, Stanford CS 193P iOS 7, \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435, iOS 7, Objective-C, \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435"},{"@type":"BreadcrumbList","@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#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\/domashnee-zadanie\/#listItem","name":"\u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435"}},{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/category\/domashnee-zadanie\/#listItem","position":2,"name":"\u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435","item":"https:\/\/bestkora.com\/IosDeveloper\/category\/domashnee-zadanie\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#listItem","name":"Stanford CS 193P iOS 7 &#8212; \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2"},"previousItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#listItem","position":3,"name":"Stanford CS 193P iOS 7 &#8212; \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2","previousItem":{"@type":"ListItem","@id":"https:\/\/bestkora.com\/IosDeveloper\/category\/domashnee-zadanie\/#listItem","name":"\u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435"}}]},{"@type":"Person","@id":"https:\/\/bestkora.com\/IosDeveloper\/#person","name":"tatiana.kornilova@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#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\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#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\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#webpage","url":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/","name":"Stanford CS 193P iOS 7 - \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2 | \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":"\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 Xcode \u0438 Objective-C \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 MVC, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 actions \u0438 outlets, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS 7 SDK.","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/#website"},"breadcrumb":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/#breadcrumblist"},"author":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author"},"creator":{"@id":"https:\/\/bestkora.com\/IosDeveloper\/author\/tatiana-lornilovagmail-com\/#author"},"datePublished":"2014-07-12T19:22:41+00:00","dateModified":"2017-09-25T08:56:48+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":"Stanford CS 193P iOS 7 - \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2 | \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":"\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 Xcode \u0438 Objective-C \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 MVC, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 actions \u0438 outlets, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS 7 SDK.","og:url":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/","article:published_time":"2014-07-12T19:22:41+00:00","article:modified_time":"2017-09-25T08:56:48+00:00","twitter:card":"summary","twitter:title":"Stanford CS 193P iOS 7 - \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2 | \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":"\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 Xcode \u0438 Objective-C \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 MVC, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 actions \u0438 outlets, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS 7 SDK."},"aioseo_meta_data":{"post_id":"369","title":"Stanford CS 193P iOS 7 - \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2 | #site_title","description":"\u0413\u043b\u0443\u0431\u043e\u043a\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 Xcode \u0438 Objective-C \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435  MVC,  \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 actions \u0438 outlets, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441  \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 iOS 7 SDK.","keywords":[{"label":"Stanford CS 193P","value":"Stanford CS 193P"},{"label":"iOS 7,Developing iOS apps","value":"iOS 7,Developing iOS apps"},{"label":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 iOS,Objective-C","value":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 iOS,Objective-C"}],"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:23","updated":"2026-02-22 19:43:33","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\/domashnee-zadanie\/\" title=\"\u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435\">\u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tStanford CS 193P iOS 7 \u2014 \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/bestkora.com\/IosDeveloper"},{"label":"\u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435","link":"https:\/\/bestkora.com\/IosDeveloper\/category\/domashnee-zadanie\/"},{"label":"Stanford CS 193P iOS 7 &#8212; \u0414\u043e\u043c\u0430\u0448\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2","link":"https:\/\/bestkora.com\/IosDeveloper\/stanford-cs-193p-ios-7-domashnee-zadanie-2\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/369","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=369"}],"version-history":[{"count":50,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":8139,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/posts\/369\/revisions\/8139"}],"wp:attachment":[{"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/media?parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/categories?post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bestkora.com\/IosDeveloper\/wp-json\/wp\/v2\/tags?post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}