<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Персональный сайт</title>
		<link>http://komikcs©krut.ucoz.com/</link>
		<description></description>
		<lastBuildDate>Sun, 10 Mar 2013 12:18:02 GMT</lastBuildDate>
		<generator>uCoz Web-Service</generator>
		<atom:link href="https://kolia2017.ucoz.com/news/rss" rel="self" type="application/rss+xml" />
		
		<item>
			<title>Создание первого приложения для iPhone (часть 2)</title>
			<description>&lt;a name=&quot;11&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;Создаем поле в&amp;nbsp;ViewController&lt;/h3&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;От­крой­те класс HelloWorldViewController.h, най­ди­те там&amp;nbsp;стро­ку&lt;/span&gt;&lt;/h3&gt;&lt;/a&gt;&lt;div id=&quot;highlighter_883766&quot; class=&quot;syntaxhighlighter nogutter &quot; style=&quot;background-color: rgb(255, 255, 255); width: 763px; margin: 1em 0px !important; padding: 10px !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important;&quot;&gt;&lt;div class=&quot;line...</description>
			<content:encoded>&lt;a name=&quot;11&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;Создаем поле в&amp;nbsp;ViewController&lt;/h3&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;От­крой­те класс HelloWorldViewController.h, най­ди­те там&amp;nbsp;стро­ку&lt;/span&gt;&lt;/h3&gt;&lt;/a&gt;&lt;div id=&quot;highlighter_883766&quot; class=&quot;syntaxhighlighter nogutter &quot; style=&quot;background-color: rgb(255, 255, 255); width: 763px; margin: 1em 0px !important; padding: 10px !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important;&quot;&gt;&lt;div class=&quot;lines&quot; style=&quot;margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important;&quot;&gt;&lt;div class=&quot;line alt1&quot; style=&quot;margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important;&quot;&gt;&lt;span class=&quot;content&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-style: none !important; outline: 0px !important; background-image: none !important; background-color: rgb(248, 248, 248) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; display: block !important;&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; font-size: 1em !important; line-height: 1.1em !important; margin: 0px !important; padding: 0px 0px 0px 1.5em !important; border: 0px !important; outline: 0px !important; background-image: url(http://touchdev.ru/templates/parts/wrapping.png) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;font-weight: bold !important; font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 102, 153) !important;&quot;&gt;@interface&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;HelloWorldViewController : UIViewController {&lt;/code&gt;&lt;/span&gt;&lt;span class=&quot;block&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 1.5em !important; border: 0px !important; outline: 0px !important; background-image: url(http://touchdev.ru/templates/parts/wrapping.png) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace; font-size: 12px; line-height: 13.1875px;&quot;&gt;и&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; font-size: 1em !important; line-height: 1.1em !important; background-color: rgb(255, 255, 255);&quot;&gt; по­сле нее&amp;nbsp;на­пи­ши­те:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;highlighter_749577&quot; class=&quot;syntaxhighlighter nogutter &quot; style=&quot;background-color: rgb(255, 255, 255); width: 763px; line-height: 1.3em; font-size: 14px; margin: 1em 0px !important; padding: 10px !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&lt;div class=&quot;lines&quot; style=&quot;margin: 0px !important; padding: 0px !important; line-height: 1.1em !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-size: 1em !important;&quot;&gt;&lt;div class=&quot;line alt1&quot; style=&quot;font-size: 9pt; margin: 0px !important; padding: 0px !important; line-height: 1.1em !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important;&quot;&gt;&lt;span class=&quot;content&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-style: none !important; outline: 0px !important; background-image: none !important; background-color: rgb(248, 248, 248) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; display: block !important;&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 1.5em !important; border: 0px !important; outline: 0px !important; background-image: url(http://touchdev.ru/templates/parts/wrapping.png) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; background-repeat: no-repeat no-repeat !important;&quot;&gt;&lt;code class=&quot;keyword&quot; style=&quot;font-weight: bold !important; font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 102, 153) !important;&quot;&gt;IBOutlet&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;UILabel *label;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Тем&amp;nbsp;са­мым, мы&amp;nbsp;со­зда­ем по­ле клас­са, ко­то­рое вско­ро­сти со­по­ста­вим с&amp;nbsp;на­шим label-​ом. Клю­че­вое сло­во&amp;nbsp;&lt;span class=&quot;monospacedText&quot; style=&quot;font-family: Consolas, Monaco, monospace; color: rgb(32, 121, 134);&quot;&gt;IBOutlet&lt;/span&gt;по­мо­га­ет Interface Builder-​у по­нять, что&amp;nbsp;это&amp;nbsp;по­ле мож­но свя­зать с&amp;nbsp;ком­по­нен­том ин­тер­фей­са. Этим мы&amp;nbsp;и&amp;nbsp;зай­мем­ся. Но&amp;nbsp;сна­ча­ла неболь­шое ли­ри­че­ское от­ступ­ле­ние о&amp;nbsp;шорт­ка­тах в&amp;nbsp;Xcode.&lt;/p&gt;&lt;a name=&quot;12&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;Шорткаты в&amp;nbsp;Xcode&lt;/h3&gt;&lt;/a&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Ред­кий раз­ра­бот­чик не&amp;nbsp;лю­бит поль­зо­вать­ся шорт­ка­та­ми, так&amp;nbsp;что&amp;nbsp;сра­зу изу­чим па­роч­ку, и,&amp;nbsp;глав­ное, пой­мем, где&amp;nbsp;их&amp;nbsp;ме­нять.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;На­чи­на­ю­ще­му про­грам­ми­сту по­сто­ян­но при­хо­дит­ся об­ра­щать­ся к&amp;nbsp;до­ку­мен­та­ции, по­это­му непло­хо за­пом­нить три&amp;nbsp;шорт­ка­та. Двой­ной щел­чок по&amp;nbsp;сло­ву в&amp;nbsp;ко­де с&amp;nbsp;за­жа­той кла­ви­шей&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;Alt&lt;/span&gt;&amp;nbsp;от­кро­ет быст­рую под­сказ­ку. Ес­ли ее&amp;nbsp;недо­ста­точ­но, в&amp;nbsp;пра­вом верх­нем уг­лу под­сказ­ки есть икон­ка с&amp;nbsp;книж­кой. На­жми­те ее,&amp;nbsp;что­бы от­крыть пол­но­цен­ную до­ку­мен­та­цию. Что­бы от­крыть до­ку­мен­та­цию сра­зу, щелк­ни­те по&amp;nbsp;ин­те­ре­су­ю­ще­му вас&amp;nbsp;сло­ву два&amp;nbsp;ра­за с&amp;nbsp;за­жа­ты­ми кла­ви­ша­ми&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Alt&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;/span&gt;. По­про­буй­те эти&amp;nbsp;шорт­ка­ты на&amp;nbsp;сло­ве&amp;nbsp;&lt;span class=&quot;monospacedText&quot; style=&quot;font-family: Consolas, Monaco, monospace; color: rgb(32, 121, 134);&quot;&gt;UILabel&lt;/span&gt;, ко­то­рое мы&amp;nbsp;толь­ко что&amp;nbsp;пи­са­ли в&amp;nbsp;HelloWorldViewController.h.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Что­бы про­сто от­крыть до­ку­мен­та­цию, мож­но на­жать&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Alt&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Shift&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;/&lt;/span&gt;&lt;/span&gt;. Чу­до­вищ­но неудоб­но, но&amp;nbsp;так&amp;nbsp;уж&amp;nbsp;сде­ла­но.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Что­бы пе­ре­хо­дить меж­ду за­го­ло­воч­ным фай­лом клас­са&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;.h) и&amp;nbsp;его&amp;nbsp;те­лом&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;.m) мож­но ис­поль­зо­вать шорт­кат&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Alt&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;вверх&lt;/span&gt;&lt;/span&gt;. Что­бы вер­нуть­ся в&amp;nbsp;преды­ду­щее ме­сто, где&amp;nbsp;мы&amp;nbsp;что-​то де­ла­ли&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;в&amp;nbsp;дру­гом клас­се, или&amp;nbsp;дру­гом ме­сте дан­но­го клас­са) мож­но на­жать&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Alt&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;вле­во&lt;/span&gt;&lt;/span&gt;. Опять пе­рей­ти&amp;nbsp;—&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Alt&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;впра­во&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Осталь­ные шорт­ка­ты изу­чай­те са­ми, для&amp;nbsp;это­го от­крой­те&amp;nbsp;&lt;span class=&quot;wikiMenu&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Xcode&lt;/span&gt;&lt;span class=&quot;wikiMenuArrow&quot; style=&quot;margin-right: 2px; margin-left: 3px;&quot;&gt;→&lt;/span&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Preferences&lt;/span&gt;&lt;/span&gt;, там&amp;nbsp;вклад­ку&amp;nbsp;&lt;i&gt;Key Bindings&lt;/i&gt;. По­ме­нять шорт­ка­ты мож­но там&amp;nbsp;же,&amp;nbsp;для&amp;nbsp;это­го вы­бе­ри­те в&amp;nbsp;таб­ли­це нуж­ную вам&amp;nbsp;стро­ку и&amp;nbsp;два­жды ткни­те в&amp;nbsp;нее, но&amp;nbsp;не&amp;nbsp;в&amp;nbsp;на­ча­ле, а&amp;nbsp;в&amp;nbsp;столб­це&amp;nbsp;&lt;i&gt;Key&lt;/i&gt;. В&amp;nbsp;по­явив­шем­ся по­ле вво­да про­сто на­жми­те нуж­ное со­че­та­ние кла­виш.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Ес­ли вы&amp;nbsp;хо­ти­те уда­лить шорт­кат, опять два­жды ткни­те в&amp;nbsp;нуж­ную стро­ку и&amp;nbsp;на­жми­те «ми­нус» в&amp;nbsp;пра­вой ча­сти по­ля вво­да.&lt;/p&gt;&lt;a name=&quot;13&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;Связываем поле с&amp;nbsp;надписью&lt;/h3&gt;&lt;/a&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;По­ра вер­нуть­ся к&amp;nbsp;на­ше­му при­ло­же­нию. Со­хра­ни­те из­ме­не­ния в&amp;nbsp;HelloWorldViewController.h&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;S&lt;/span&gt;&lt;/span&gt;) и&amp;nbsp;сно­ва от­крой­те HelloWorldViewController.​xib в&amp;nbsp;Interface Builder-​е.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Вы­бе­ри­те File’s Owner и&amp;nbsp;на­жми­те&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&amp;nbsp;— от­кро­ет­ся вто­рая вклад­ка ин­спек­то­ра. В&amp;nbsp;ней&amp;nbsp;есть раз­дел Outlets, а&amp;nbsp;там&amp;nbsp;в&amp;nbsp;од­ной из&amp;nbsp;строк сле­ва на­пи­са­но «label». Спра­ва в&amp;nbsp;этой же&amp;nbsp;стро­ке&amp;nbsp;— пу­стой кру­жок. За­жав ле­вую кноп­ку мы­ши, по­тя­ни­те кру­жок к&amp;nbsp;на­ше­му label-​у. Ко­гда мыш­ка ока­жет­ся над&amp;nbsp;label-​ом, от­пу­сти­те кла­ви­шу мы­ши.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/363.upload&quot; class=&quot;imagePreview&quot; width=&quot;500&quot; height=&quot;272&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Те­перь на­ше по­ле ти­па&amp;nbsp;&lt;span class=&quot;monospacedText&quot; style=&quot;font-family: Consolas, Monaco, monospace; color: rgb(32, 121, 134);&quot;&gt;UILabel&lt;/span&gt;&amp;nbsp;со­по­став­ле­но с&amp;nbsp;лэй­б­лом в&amp;nbsp;ин­тер­фейс бил­де­ре&amp;nbsp;— спра­ва от&amp;nbsp;label в&amp;nbsp;раз­де­ле Outlets на­пи­са­но&amp;nbsp;&lt;i&gt;«Label&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;Hello World!)»&lt;/i&gt;. Interface Builder поз­во­ля­ет за­дать на­чаль­ное со­сто­я­ние эле­мен­та ин­тер­фей­са, а&amp;nbsp;в&amp;nbsp;ко­де мы&amp;nbsp;мо­жем даль­ше ме­нять его&amp;nbsp;ат­ри­бу­ты по&amp;nbsp;сво­е­му усмот­ре­нию.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Ес­ли мы&amp;nbsp;ко­гда-​ни­будь за­хо­тим разо­рвать связь на­ше­го по­ля с&amp;nbsp;этим label-​ом, мы&amp;nbsp;ткнем в&amp;nbsp;ма­лень­кий кре­стик сле­ва от&amp;nbsp;&lt;i&gt;«Label&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;Hello World!)»&lt;/i&gt;. Но&amp;nbsp;сей­час про­сто со­хра­ним xib&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;S&lt;/span&gt;&lt;/span&gt;) и&amp;nbsp;вер­нем­ся в&amp;nbsp;Xcode.&lt;/p&gt;&lt;a name=&quot;14&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;Меняем текст надписи&lt;/h3&gt;&lt;/a&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Вы­бе­ри­те сле­ва файл HelloWorldViewController.m и&amp;nbsp;най­ди­те за­ком­мен­ти­ро­ван­ный ме­тод&lt;/p&gt;&lt;div id=&quot;highlighter_275456&quot; class=&quot;syntaxhighlighter nogutter &quot; style=&quot;background-color: rgb(255, 255, 255); width: 763px; line-height: 1.3em; font-size: 14px; margin: 1em 0px !important; padding: 10px !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&lt;div class=&quot;lines&quot; style=&quot;margin: 0px !important; padding: 0px !important; line-height: 1.1em !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-size: 1em !important;&quot;&gt;&lt;div class=&quot;line alt1&quot; style=&quot;font-size: 9pt; margin: 0px !important; padding: 0px !important; line-height: 1.1em !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important;&quot;&gt;&lt;span class=&quot;content&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-style: none !important; outline: 0px !important; background-image: none !important; background-color: rgb(248, 248, 248) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; display: block !important;&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 1.5em !important; border: 0px !important; outline: 0px !important; background-image: url(http://touchdev.ru/templates/parts/wrapping.png) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; background-repeat: no-repeat no-repeat !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;-(&lt;/code&gt;&lt;code class=&quot;datatypes&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;void&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;)viewDidLoad {&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Рас­ком­мен­ти­руй­те его, уда­лив&amp;nbsp;&lt;span class=&quot;monospacedText&quot; style=&quot;font-family: Consolas, Monaco, monospace; color: rgb(32, 121, 134);&quot;&gt;/*&lt;/span&gt;&amp;nbsp;и&amp;nbsp;&lt;span class=&quot;monospacedText&quot; style=&quot;font-family: Consolas, Monaco, monospace; color: rgb(32, 121, 134);&quot;&gt;*/&lt;/span&gt;&amp;nbsp;до&amp;nbsp;и&amp;nbsp;по­сле ме­то­да, и&amp;nbsp;по­сле&lt;/p&gt;&lt;div id=&quot;highlighter_241599&quot; class=&quot;syntaxhighlighter nogutter &quot; style=&quot;background-color: rgb(255, 255, 255); width: 763px; line-height: 1.3em; font-size: 14px; margin: 1em 0px !important; padding: 10px !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&lt;div class=&quot;lines&quot; style=&quot;margin: 0px !important; padding: 0px !important; line-height: 1.1em !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-size: 1em !important;&quot;&gt;&lt;div class=&quot;line alt1&quot; style=&quot;font-size: 9pt; margin: 0px !important; padding: 0px !important; line-height: 1.1em !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important;&quot;&gt;&lt;span class=&quot;content&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-style: none !important; outline: 0px !important; background-image: none !important; background-color: rgb(248, 248, 248) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; display: block !important;&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 1.5em !important; border: 0px !important; outline: 0px !important; background-image: url(http://touchdev.ru/templates/parts/wrapping.png) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; background-repeat: no-repeat no-repeat !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;[&lt;/code&gt;&lt;code class=&quot;keyword&quot; style=&quot;font-weight: bold !important; font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 102, 153) !important;&quot;&gt;super&lt;/code&gt;&amp;nbsp;&lt;code class=&quot;plain&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;viewDidLoad];&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;на­пи­ши­те&lt;/p&gt;&lt;div id=&quot;highlighter_625185&quot; class=&quot;syntaxhighlighter nogutter &quot; style=&quot;background-color: rgb(255, 255, 255); width: 763px; line-height: 1.3em; font-size: 14px; margin: 1em 0px !important; padding: 10px !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&lt;div class=&quot;lines&quot; style=&quot;margin: 0px !important; padding: 0px !important; line-height: 1.1em !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; font-size: 1em !important;&quot;&gt;&lt;div class=&quot;line alt1&quot; style=&quot;font-size: 9pt; margin: 0px !important; padding: 0px !important; line-height: 1.1em !important; border: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important;&quot;&gt;&lt;span class=&quot;content&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-style: none !important; outline: 0px !important; background-image: none !important; background-color: rgb(248, 248, 248) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; display: block !important;&quot;&gt;&lt;span class=&quot;block&quot; style=&quot;margin: 0px !important; padding: 0px 0px 0px 1.5em !important; border: 0px !important; outline: 0px !important; background-image: url(http://touchdev.ru/templates/parts/wrapping.png) !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; font-size: 1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; background-repeat: no-repeat no-repeat !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;label.text = @&lt;/code&gt;&lt;code class=&quot;string&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: blue !important;&quot;&gt;&quot;Hi again!&quot;&lt;/code&gt;&lt;code class=&quot;plain&quot; style=&quot;font-size: 1em !important; font-family: Consolas, Monaco, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important; border: 0px !important; margin: 0px !important; padding: 0px !important; outline: 0px !important; background-image: none !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important;&quot;&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Дан­ный ме­тод вы­пол­ня­ет­ся по­сле ини­ци­а­ли­за­ции view, а&amp;nbsp;впи­сан­ная на­ми стро­ка ме­ня­ет текст по­ля label, ко­то­рое, как&amp;nbsp;мы&amp;nbsp;пом­ним, и&amp;nbsp;есть на­ша над­пись. За­пу­сти­те при­ло­же­ние. Ес­ли мы&amp;nbsp;все&amp;nbsp;сде­ла­ли пра­виль­но, мы&amp;nbsp;уви­дим сле­ду­ю­щую кар­ти­ну:&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/362.upload&quot; class=&quot;imagePreview&quot; width=&quot;250&quot; height=&quot;452&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Как&amp;nbsp;ви­ди­те, все&amp;nbsp;очень про­сто. Нам&amp;nbsp;по­на­до­би­лось на­пи­сать все­го 2&amp;nbsp;стро­ки ко­да!&lt;/p&gt;&lt;a name=&quot;15&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 14pt; line-height: 1.286em;&quot;&gt;&lt;br&gt;&lt;/h2&gt;&lt;/a&gt;</content:encoded>
			<link>https://kolia2017.ucoz.com/news/sozdanie_pervogo_prilozhenija_dlja_iphone_chast_2/2013-03-10-4</link>
			<dc:creator>kolia2017</dc:creator>
			<guid>https://kolia2017.ucoz.com/news/sozdanie_pervogo_prilozhenija_dlja_iphone_chast_2/2013-03-10-4</guid>
			<pubDate>Sun, 10 Mar 2013 12:18:02 GMT</pubDate>
		</item>
		<item>
			<title>Создание первого приложения для iPhone</title>
			<description>&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 17.328125px; background-color: rgb(255, 255, 255);&quot;&gt;Уровень сложности:&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;color: rgb(203, 0, 27); font-style: normal; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 17.328125px; background-color: rgb(255, 255, 255);&quot;&gt;для начинающих&lt;/em&gt;&lt;div&gt;&lt;div class=&quot;abstract&quot; style=&quot;margin: 25px 0px 10px; padding: 1px 20px 10px; line-height: 1.3em; font-size: 9pt; background-color: rgb(242, 242, 242); font-family: Arial, sans-serif;&quot;&gt;&lt;h2 style=&quot;margin: 10px 0px; padding: 0px; font-size: 12pt; line-height: 1.286em;&quot;&gt;Аннотация&lt;/h2&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 0px 0px 5px; padding: 0px; font-size: 9pt; line-height: 1.3em;&quot;&gt;Со­здать про­стое при­ло­же­ние для&amp;nbsp;iPhone со­всем неслож­но. В&amp;nbsp;этой ста­тье я&amp;nbsp;рас­ска­жу:&lt;/p&gt;&lt;ul style=&quot;font-size: 9pt; margin-top: 2px;&quot;&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-...</description>
			<content:encoded>&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 17.328125px; background-color: rgb(255, 255, 255);&quot;&gt;Уровень сложности:&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;color: rgb(203, 0, 27); font-style: normal; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 17.328125px; background-color: rgb(255, 255, 255);&quot;&gt;для начинающих&lt;/em&gt;&lt;div&gt;&lt;div class=&quot;abstract&quot; style=&quot;margin: 25px 0px 10px; padding: 1px 20px 10px; line-height: 1.3em; font-size: 9pt; background-color: rgb(242, 242, 242); font-family: Arial, sans-serif;&quot;&gt;&lt;h2 style=&quot;margin: 10px 0px; padding: 0px; font-size: 12pt; line-height: 1.286em;&quot;&gt;Аннотация&lt;/h2&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 0px 0px 5px; padding: 0px; font-size: 9pt; line-height: 1.3em;&quot;&gt;Со­здать про­стое при­ло­же­ние для&amp;nbsp;iPhone со­всем неслож­но. В&amp;nbsp;этой ста­тье я&amp;nbsp;рас­ска­жу:&lt;/p&gt;&lt;ul style=&quot;font-size: 9pt; margin-top: 2px;&quot;&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-height: 1.5em; list-style: disc;&quot;&gt;что&amp;nbsp;нуж­но для&amp;nbsp;про­грам­ми­ро­ва­ния под&amp;nbsp;Mac&amp;nbsp;и&amp;nbsp;iPhone;&lt;/li&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-height: 1.5em; list-style: disc;&quot;&gt;как&amp;nbsp;ска­чать и&amp;nbsp;по­ста­вить сре­ду для&amp;nbsp;раз­ра­бот­ки;&lt;/li&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-height: 1.5em; list-style: disc;&quot;&gt;как&amp;nbsp;на­пи­сать при­ло­же­ние Hello World.&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 0px 0px 5px; padding: 0px; font-size: 9pt; line-height: 1.3em;&quot;&gt;Ста­тья расчи­та­на на&amp;nbsp;лю­дей, ко­то­рые ни­ко­гда не&amp;nbsp;про­грам­ми­ро­ва­ли под&amp;nbsp;iPhone.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 0px 0px 5px; padding: 0px; font-size: 9pt; line-height: 1.3em;&quot;&gt;&lt;a name=&quot;1&quot; style=&quot;color: rgb(32, 32, 128); font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 14pt; line-height: 1.286em; display: inline !important;&quot;&gt;Что нужно для&amp;nbsp;разработки&lt;/h2&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 0px 0px 5px; padding: 0px; font-size: 9pt; line-height: 1.3em;&quot;&gt;&lt;a name=&quot;2&quot; style=&quot;color: rgb(32, 32, 128); font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em; display: inline !important;&quot;&gt;Мак с&amp;nbsp;процессором Intel&lt;/h3&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 0px 0px 5px; padding: 0px; font-size: 9pt; line-height: 1.3em;&quot;&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;Итак, что­бы по­про­бо­вать се­бя в&amp;nbsp;ро­ли раз­ра­бот­чи­ка нуж­но как&amp;nbsp;ми­ни­мум иметь ком­пью­тер, вы­пу­щен­ный&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;Apple&lt;/i&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;, ко­рот­ко го­во­ря&amp;nbsp;—&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;Мак&lt;/i&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;. При­чем не&amp;nbsp;про­сто Мак, а&amp;nbsp;с&amp;nbsp;про­цес­со­ром&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;Intel&lt;/i&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;&amp;nbsp;— пер­вые та­кие ком­пью­те­ры бы­ли вы­пу­ще­ны в&amp;nbsp;ян­ва­ре 2006 го­да. Ес­ли вы&amp;nbsp;не&amp;nbsp;зна­е­те, ка­кой про­цес­сор у&amp;nbsp;ва­ше­го Ма­ка, клик­ни­те в&amp;nbsp;яб­лоч­ко в&amp;nbsp;ле­вом верх­нем уг­лу экра­на, да­лее вы­бе­ри­те пер­вый пункт:&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;wikiMenu&quot; style=&quot;font-size: 14px; line-height: 18.1875px; font-style: italic;&quot;&gt;About This Mac&lt;/span&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255); font-size: 14px; line-height: 18.1875px;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/343.upload&quot; class=&quot;imagePreview&quot; width=&quot;321&quot; height=&quot;393&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;В&amp;nbsp;от­крыв­шем­ся окне на­до по­смот­реть, что&amp;nbsp;на­пи­са­но про&amp;nbsp;про­цес­сор. Долж­но быть сло­во Intel. Ес­ли его&amp;nbsp;нет&amp;nbsp;—&amp;nbsp;все&amp;nbsp;пло­хо и&amp;nbsp;вам&amp;nbsp;ну­жен но­вый Мак. Ес­ли у&amp;nbsp;вас&amp;nbsp;нет&amp;nbsp;Ма­ка, то&amp;nbsp;в&amp;nbsp;прин­ци­пе су­ще­ству­ет воз­мож­ность по­ста­вить Mac&amp;nbsp;OS&amp;nbsp;на&amp;nbsp;обыч­ный PC&amp;nbsp;—&amp;nbsp;&lt;a href=&quot;http://u.to/JlwJAw&quot; title=&quot;http://www.google.com/search?q=hackintosh&quot; style=&quot;color: rgb(32, 32, 128);&quot;&gt;Google вам в по­мощь&lt;/a&gt;.&lt;/p&gt;&lt;a name=&quot;3&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;Mac OS&amp;nbsp;X&amp;nbsp;10.5&amp;nbsp;или&amp;nbsp;выше&lt;/h3&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/span&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;На&amp;nbsp;Ма­ке дол­жен сто­ять&amp;nbsp;&lt;i&gt;Mac OS&amp;nbsp;X&amp;nbsp;10.5 Leopard&lt;/i&gt;&amp;nbsp;или&amp;nbsp;&lt;i&gt;10.6 Snow Leopard&lt;/i&gt;. Под&amp;nbsp;бо­лее ста­ры­ми вер­си­я­ми опе­ра­ци­он­ной си­сте­мы про­грам­ми­ро­вать, увы, не&amp;nbsp;по­лу­чит­ся. Сто­ит та­к­же от­ме­тить, что&amp;nbsp;долж­ны быть по­став­ле­ны все&amp;nbsp;ап­дей­ты си­сте­мы.&lt;/p&gt;&lt;a name=&quot;4&quot; style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;color: rgb(32, 32, 128); margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;Аккаунт разработчика&lt;/h3&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;&lt;a name=&quot;4&quot; style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em; display: inline !important;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 18.1875px; font-family: &apos;Arial Narrow&apos;; font-style: italic;&quot;&gt;В&amp;nbsp;прин­ци­пе, для&amp;nbsp;то­го, что­бы на­чать раз­ра­бот­ку, ну­жен толь­ко пра­виль­ный ком­пью­тер с&amp;nbsp;пра­виль­ной опе­ра­ци­он­ной си­сте­мой и&amp;nbsp;уста­нов­лен­ной сре­дой раз­ра­бот­ки&lt;/span&gt;&lt;span style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;Xcode&lt;/i&gt;&lt;span style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;.&lt;/span&gt;&lt;/h3&gt;&lt;/a&gt;&lt;/h3&gt;&lt;/a&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Од­на­ко, при&amp;nbsp;этом вы&amp;nbsp;смо­же­те те­сти­ро­вать свои при­ло­же­ния толь­ко в&amp;nbsp;си­му­ля­то­ре, и&amp;nbsp;не&amp;nbsp;смо­же­те:&lt;/p&gt;&lt;ul style=&quot;font-size: 11pt; margin-top: 2px; font-family: Arial, sans-serif; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-height: 1.5em; list-style: disc;&quot;&gt;вы­кла­ды­вать их&amp;nbsp;в&amp;nbsp;App&amp;nbsp;Store;&lt;/li&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-height: 1.5em; list-style: disc;&quot;&gt;уста­нав­ли­вать раз­ра­ба­ты­ва­е­мые про­грам­мы на&amp;nbsp;iPhone, а&amp;nbsp;зна­чит:&lt;ul&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-height: 1.5em; list-style: disc;&quot;&gt;пол­но­цен­но те­сти­ро­вать ак­се­ле­ро­метр и&amp;nbsp;трех/че­ты­рех­паль­це­вые же­сты;&lt;/li&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-height: 1.5em; list-style: disc;&quot;&gt;вы­яс­нять, есть ли&amp;nbsp;у&amp;nbsp;при­ло­же­ния про­бле­мы с&amp;nbsp;про­из­во­ди­тель­но­стью;&lt;/li&gt;&lt;li class=&quot;hyphenate&quot; style=&quot;margin: 0px; padding: 0px; font-size: 1em; line-height: 1.5em; list-style: disc;&quot;&gt;про­ве­рять про­чие осо­бен­но­сти при­ло­же­ния, за­ви­ся­щие от&amp;nbsp;же­ле­за.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;В&amp;nbsp;об­щем, для&amp;nbsp;се­рьез­ной раз­ра­бот­ки вам&amp;nbsp;все&amp;nbsp;рав­но при­дет­ся офи­ци­аль­но стать раз­ра­бот­чи­ком. Это&amp;nbsp;не&amp;nbsp;так&amp;nbsp;слож­но&amp;nbsp;— для&amp;nbsp;ре­ги­стра­ции на­до за­пол­нить па­ру ан­кет и&amp;nbsp;в&amp;nbsp;даль­ней­шем еже­год­но пла­тить ком­па­нии Apple 99&amp;nbsp;дол­ла­ров.&lt;/p&gt;&lt;a name=&quot;5&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 14pt; line-height: 1.286em;&quot;&gt;Устанавливаем Xcode и&amp;nbsp;SDK&lt;/h2&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/span&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Для&amp;nbsp;то­го, что­бы на­чать раз­ра­ба­ты­вать ай­фо­но-​про­грам­мы, на­до в&amp;nbsp;первую оче­редь за­ло­ги­нить­ся на&amp;nbsp;&lt;a href=&quot;http://u.to/J1wJAw&quot; title=&quot;http://developer.apple.com/iphone&quot; style=&quot;color: rgb(32, 32, 128);&quot;&gt;сай­те ай­фо­но-​раз­ра­бот­чи­ков&lt;/a&gt;. Ес­ли у&amp;nbsp;вас&amp;nbsp;уже&amp;nbsp;есть&amp;nbsp;&lt;i&gt;Apple ID&lt;/i&gt;&amp;nbsp;— пре­крас­но, вы&amp;nbsp;мо­же­те ло­ги­нить­ся с&amp;nbsp;ним. Ес­ли нет&amp;nbsp;—&amp;nbsp;его&amp;nbsp;не&amp;nbsp;так&amp;nbsp;слож­но по­лу­чить. Для&amp;nbsp;это­го не&amp;nbsp;нуж­но ни­че­го пла­тить&amp;nbsp;— обыч­ная ре­ги­стра­ция, как&amp;nbsp;на&amp;nbsp;лю­бом сай­те. Кноп­ки «Register» и&amp;nbsp;«Log in»&amp;nbsp;на­хо­дят­ся в&amp;nbsp;верх­нем пра­вом уг­лу стра­ни­цы.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Те­перь на­до ска­чать па­кет Xcode с&amp;nbsp;iPhone SDK. На&amp;nbsp;это&amp;nbsp;уй­дет неко­то­рое вре­мя, по­сколь­ку вам&amp;nbsp;при­дет­ся ска­чать не&amp;nbsp;мень­ше 2GB. На&amp;nbsp;мо­мент на­пи­са­ния ста­тьи для&amp;nbsp;Leopard был&amp;nbsp;до­сту­пен па­кет&amp;nbsp;&lt;a href=&quot;http://u.to/KVwJAw&quot; title=&quot;http://developer.apple.com/iphone/download.action?path=/iphone/iphone_sdk_3.1__final/iphone_sdk_3.1_with_xcode_3.1_final_v2_leopard__9m2809.dmg&quot; style=&quot;color: rgb(32, 32, 128);&quot;&gt;iPhone SDK 3.1 with Xcode 3.1.4&lt;/a&gt;, а&amp;nbsp;для&amp;nbsp;Snow Leopard&amp;nbsp;—&amp;nbsp;&lt;a href=&quot;http://u.to/JVwJAw&quot; title=&quot;http://developer.apple.com/iphone/download.action?path=/iphone/iphone_sdk_3.1__final/iphone_sdk_3.1_with_xcode_3.2_final_v2__snow_leopard__10a432.dmg&quot; style=&quot;color: rgb(32, 32, 128);&quot;&gt;iPhone SDK 3.1 with Xcode 3.2&lt;/a&gt;.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Ска­чи­вай­те, ставь­те. При&amp;nbsp;уста­нов­ке луч­ше га­лоч­ки ни­от­ку­да не&amp;nbsp;сни­мать, про­сто на­жи­мать кноп­ку Next.&lt;/p&gt;&lt;a name=&quot;6&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 14pt; line-height: 1.286em;&quot;&gt;Кто такой Objective-C?&lt;/h2&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/span&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Ес­ли язык Objective-​C вам&amp;nbsp;незна­ком, ре­ко­мен­дую озна­ко­мить­ся с&amp;nbsp;от­лич­ной&amp;nbsp;&lt;a href=&quot;http://u.to/KFwJAw&quot; title=&quot;http://touchdev.ru/documents/115&quot; style=&quot;color: rgb(32, 32, 128);&quot;&gt;ста­тьей Шу­ри­ка Ба­ба­е­ва&lt;/a&gt;.&lt;/p&gt;&lt;a name=&quot;7&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 14pt; line-height: 1.286em;&quot;&gt;Пишем&lt;span class=&quot;slaquo&quot; style=&quot;margin-right: 0.192308em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hlaquo&quot; style=&quot;margin-left: -0.192308em;&quot;&gt;«&lt;/span&gt;Hello World!»&lt;/h2&gt;&lt;h2 style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 14pt; line-height: 1.286em;&quot;&gt;&lt;a name=&quot;8&quot; style=&quot;font-size: 14px; line-height: 18.1875px;&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em; display: inline !important;&quot;&gt;Создаем проект&lt;/h3&gt;&lt;/a&gt;&lt;/h2&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/span&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Итак, под­го­тов­ка по­за­ди, и&amp;nbsp;мы&amp;nbsp;мо­жем при­сту­пить к&amp;nbsp;де­лу! Тор­же­ствен­но за­пу­стим&amp;nbsp;&lt;i&gt;Xcode&lt;/i&gt;&amp;nbsp;— он&amp;nbsp;на­хо­дит­ся в&amp;nbsp;пап­ке&lt;i&gt;/Developer/Applications&lt;/i&gt;.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Сра­зу же&amp;nbsp;ре­ко­мен­дую из­ме­нить Layout. В&amp;nbsp;прин­ци­пе, это&amp;nbsp;со­вер­шен­но не&amp;nbsp;обя­за­тель­но&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;де­ло вку­са), но&amp;nbsp;я&amp;nbsp;де­лал скрин­шо­ты из&amp;nbsp;layout-​а&lt;span class=&quot;slaquo&quot; style=&quot;margin-right: 0.192308em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hlaquo&quot; style=&quot;margin-left: -0.192308em;&quot;&gt;«&lt;/span&gt;All in&amp;nbsp;One», так&amp;nbsp;что, для&amp;nbsp;по­нят­но­сти, луч­ше по­ста­вить его&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;ес­ли за­хо­ти­те, в&amp;nbsp;лю­бой мо­мент по­ме­ня­е­те об­рат­но). Пре­лесть то­го layout-​а, на&amp;nbsp;ко­то­рый я&amp;nbsp;пред­ла­гаю вам&amp;nbsp;пе­рей­ти в&amp;nbsp;том, что&amp;nbsp;вся&amp;nbsp;нуж­ная вам&amp;nbsp;ин­фор­ма­ция на­хо­дит­ся в&amp;nbsp;од­ном окне, по­это­му вы&amp;nbsp;точ­но ни­че­го не&amp;nbsp;по­те­ря­е­те, и&amp;nbsp;по­на­ча­лу вам&amp;nbsp;бу­дет чуть про­ще раз­би­рать­ся с&amp;nbsp;мно­го­чис­лен­ны­ми окош­ка­ми. Зай­ди­те в&amp;nbsp;&lt;span class=&quot;wikiMenu&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Xсode&lt;/span&gt;&lt;span class=&quot;wikiMenuArrow&quot; style=&quot;margin-right: 2px; margin-left: 3px;&quot;&gt;→&lt;/span&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Preferences&lt;/span&gt;&lt;/span&gt;, пер­вая вклад­ка&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;General), вы­би­ри­те Layout «All In&amp;nbsp;One» и&amp;nbsp;за­крой­те диа­лог. Об­ра­ти­те вни­ма­ние, что&amp;nbsp;layout мож­но по­ме­нять толь­ко ес­ли все&amp;nbsp;про­ек­ты за­кры­ты.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Те­перь на­до со­здать про­ект. Xcode пред­ла­га­ет нам&amp;nbsp;несколь­ко шаб­ло­нов, из&amp;nbsp;ко­то­рых нуж­но вы­брать под­хо­дя­щий. Зай­ди­те в&amp;nbsp;&lt;span class=&quot;wikiMenu&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;wikiMenuArrow&quot; style=&quot;margin-right: 2px; margin-left: 3px;&quot;&gt;→&lt;/span&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;New Project...&lt;/span&gt;&lt;/span&gt;, в&amp;nbsp;ле­вой ко­лон­ке най­ди­те раз­дел&amp;nbsp;&lt;i&gt;iPhone OS&lt;/i&gt;, в&amp;nbsp;нем&amp;nbsp;вы­бе­ри­те пункт&amp;nbsp;&lt;i&gt;Application&lt;/i&gt;&amp;nbsp;— мы&amp;nbsp;же&amp;nbsp;со­зда­ем при­ло­же­ние.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/354.upload&quot; class=&quot;imagePreview&quot; width=&quot;500&quot; height=&quot;416&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Спра­ва по­явит­ся спи­сок до­ступ­ных шаб­ло­нов. Са­мым ба­зо­вым яв­ля­ет­ся шаб­лон&amp;nbsp;&lt;i&gt;Window-​based Application&lt;/i&gt;&amp;nbsp;— там&amp;nbsp;из­на­чаль­но со­зда­ны толь­ко те&amp;nbsp;клас­сы, без&amp;nbsp;ко­то­рых не&amp;nbsp;мо­жет обой­тись ни&amp;nbsp;од­но при­ло­же­ние. Для&amp;nbsp;про­сто­ты мы&amp;nbsp;вы­бе­рем бо­лее под­хо­дя­щий нам&amp;nbsp;шаб­лон&amp;nbsp;—&amp;nbsp;&lt;i&gt;View-​based Application&lt;/i&gt;. На­жми­те&amp;nbsp;&lt;i&gt;Choose…&lt;/i&gt;, вве­ди­те имя&amp;nbsp;про­ек­та:&lt;i&gt;HelloWorld&lt;/i&gt;, со­хра­ни­те ку­да-​ни­будь, где&amp;nbsp;вам&amp;nbsp;удоб­но, что­бы жил&amp;nbsp;ваш&amp;nbsp;про­ект.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;В&amp;nbsp;ре­зуль­та­те всех этих ма­ни­пу­ля­ций от­кро­ет­ся ок­но с&amp;nbsp;на­шим про­ек­том, в&amp;nbsp;ко­то­ром на­хо­дит­ся по­чти все, что&amp;nbsp;нам&amp;nbsp;нуж­но. Сле­ва мы&amp;nbsp;ви­дим все&amp;nbsp;фай­лы. Раз­вер­нем пер­вый пункт&amp;nbsp;&lt;i&gt;(Hello World)&lt;/i&gt;, в&amp;nbsp;нем&amp;nbsp;раз­вер­нем две&amp;nbsp;груп­пы:&lt;i&gt;Classes&lt;/i&gt;&amp;nbsp;и&amp;nbsp;&lt;i&gt;Resources&lt;/i&gt;. В&amp;nbsp;ре­зуль­та­те по­лу­чим при­мер­но та­кое ок­но:&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/355.upload&quot; class=&quot;imagePreview&quot; width=&quot;600&quot; height=&quot;447&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Спа­си­бо на­ше­му шаб­ло­ну, у&amp;nbsp;нас&amp;nbsp;сра­зу есть два&amp;nbsp;клас­са:&amp;nbsp;&lt;i&gt;HelloWorldAppDelegate&lt;/i&gt;&amp;nbsp;и&amp;nbsp;&lt;i&gt;HelloWorldViewController&lt;/i&gt;. Для&amp;nbsp;каж­до­го со­здан за­го­ло­воч­ный файл&amp;nbsp;&lt;i&gt;(.h)&lt;/i&gt;&amp;nbsp;и,&amp;nbsp;соб­ствен­но, те­ло клас­са&amp;nbsp;&lt;i&gt;(.m)&lt;/i&gt;.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;i&gt;HelloWorldAppDelegate&lt;/i&gt;&amp;nbsp;— класс, от­ве­ча­ю­щий за&amp;nbsp;об­щую ин­фра­струк­ту­ру при­ло­же­ния. Тро­гать его&amp;nbsp;нам&amp;nbsp;не&amp;nbsp;по­на­до­бит­ся.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;В&amp;nbsp;от­ли­чие от&amp;nbsp;де­ле­га­та,&amp;nbsp;&lt;i&gt;HelloWorldViewController&lt;/i&gt;&amp;nbsp;нам&amp;nbsp;очень ну­жен&amp;nbsp;— имен­но в&amp;nbsp;него мы&amp;nbsp;бу­дем до­бав­лять по­ля и&amp;nbsp;ме­то­ды. Так&amp;nbsp;как&amp;nbsp;мы&amp;nbsp;вы­бра­ли шаб­лон при­ло­же­ния, в&amp;nbsp;ко­то­ром уже&amp;nbsp;со­зда­на од­на вьюш­ка&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;ви­зу­аль­ный ком­по­нент, яв­ля­ю­щий­ся ос­нов­ной, кон­тей­не­ром для&amp;nbsp;всех стан­дарт­ных эле­мен­тов ин­тер­фей­са), то&amp;nbsp;Xcode со­здал этот класс.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Да­вай­те за­пу­стим на­ше при­ло­же­ние и&amp;nbsp;по­смот­рим, что&amp;nbsp;у&amp;nbsp;нас&amp;nbsp;по­лу­чит­ся. В&amp;nbsp;па­не­ли ин­стру­мен­тов в&amp;nbsp;&lt;i&gt;Overview&lt;/i&gt;&amp;nbsp;вы­бе­ри­те&amp;nbsp;&lt;i&gt;iPhone Simulator, Debug&lt;/i&gt;. Да­лее для&amp;nbsp;за­пус­ка мож­но на­жать&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Return&lt;/span&gt;&lt;/span&gt;, или&amp;nbsp;ткнуть в&amp;nbsp;&lt;i&gt;Build and&amp;nbsp;Run&lt;/i&gt;&amp;nbsp;в&amp;nbsp;па­не­ли ин­стру­мен­тов Xcode, или&amp;nbsp;вы­брать од­но­имен­ный пункт в&amp;nbsp;ме­ню&amp;nbsp;&lt;i&gt;Build&lt;/i&gt;.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/356.upload&quot; class=&quot;imagePreview&quot; width=&quot;250&quot; height=&quot;452&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Мы&amp;nbsp;по­лу­чи­ли пу­стое окош­ко. От­лич­но. На­пи­шем в&amp;nbsp;нем&amp;nbsp;что-​ни­будь. Са­мый про­стой спо­соб это&amp;nbsp;сде­лать&amp;nbsp;— до­ба­вить в&amp;nbsp;окош­ко&amp;nbsp;&lt;i&gt;UILabel&lt;/i&gt;, то&amp;nbsp;есть ком­по­нент, ко­то­рый пред­на­зна­чен для&amp;nbsp;по­ка­за ста­ти­че­ско­го тек­ста. За­од­но мы&amp;nbsp;по­зна­ко­мим­ся с&amp;nbsp;про­грам­мой&amp;nbsp;&lt;i&gt;Interface Builder&lt;/i&gt;.&lt;/p&gt;&lt;a name=&quot;9&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;Знакомимся с&amp;nbsp;Interface Builder&lt;/h3&gt;&lt;/a&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;i&gt;Interface Builder&lt;/i&gt;&amp;nbsp;— это&amp;nbsp;ви­зу­аль­ный ре­дак­тор, поз­во­ля­ю­щий до­бав­лять во&amp;nbsp;вьюш­ки ком­по­нен­ты, ре­дак­ти­ро­вать их&amp;nbsp;свой­ства и&amp;nbsp;уста­нав­ли­вать меж­ду ни­ми свя­зи. Без­услов­но, вы&amp;nbsp;мо­же­те обой­тись без&amp;nbsp;Interface Builder-​а и&amp;nbsp;де­лать все&amp;nbsp;вруч­ную, в&amp;nbsp;ко­де. Ино­гда это&amp;nbsp;необ­хо­ди­мо&amp;nbsp;— на­при­мер, ес­ли ко­ли­че­ство ком­по­нен­тов ди­на­ми­че­ски ме­ня­ет­ся, но&amp;nbsp;для&amp;nbsp;про­стых слу­ча­ев Interface Builder силь­но упро­ща­ет жизнь.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;При­сту­пим! В&amp;nbsp;фай­лах про­ек­та най­ди­те пап­ку Resources, а&amp;nbsp;в&amp;nbsp;ней&amp;nbsp;файл HelloWorldViewController.​xib. Двой­ной клик на&amp;nbsp;нем&amp;nbsp;от­кро­ет Interface Builder.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/357.upload&quot; class=&quot;imagePreview&quot; width=&quot;600&quot; height=&quot;434&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Ес­ли сред­нее ок­но про­смот­ра от­сут­ству­ет&amp;nbsp;— ткни­те два&amp;nbsp;ра­за на&amp;nbsp;&lt;i&gt;View&lt;/i&gt;, и&amp;nbsp;оно&amp;nbsp;от­кро­ет­ся. Ес­ли нет&amp;nbsp;пра­во­го ок­на&lt;i&gt;(Library)&lt;/i&gt;&amp;nbsp;— на­жми­те&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Shift&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;L&lt;/span&gt;&lt;/span&gt;&amp;nbsp;или&amp;nbsp;вы­бе­ри­те&amp;nbsp;&lt;span class=&quot;wikiMenu&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Tools&lt;/span&gt;&lt;span class=&quot;wikiMenuArrow&quot; style=&quot;margin-right: 2px; margin-left: 3px;&quot;&gt;→&lt;/span&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Library&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Что&amp;nbsp;же&amp;nbsp;мы&amp;nbsp;ви­дим? В&amp;nbsp;ле­вом окне три&amp;nbsp;объ­ек­та, но&amp;nbsp;нам&amp;nbsp;ин­те­ре­сен толь­ко один, View&amp;nbsp;— это&amp;nbsp;та&amp;nbsp;са­мая се­рая па­нель­ка, ко­то­рая по­се­ре­дине, и&amp;nbsp;с&amp;nbsp;ко­то­рой мы&amp;nbsp;бу­дем ра­бо­тать. Ее-​то мы&amp;nbsp;и&amp;nbsp;ви­де­ли на&amp;nbsp;экране ай­фо­на, ко­гда за­пус­ка­ли при­ло­же­ние. Спра­ва&amp;nbsp;— биб­лио­те­ка ком­по­нен­тов, ко­то­рые мы&amp;nbsp;мо­жем пе­ре­та­щить в&amp;nbsp;окош­ко. Най­ди­те там&amp;nbsp;&lt;i&gt;Label&lt;/i&gt;и&amp;nbsp;пе­ре­та­щи­те при­мер­но в&amp;nbsp;се­ре­ди­ну се­ро­го ок­на. Даль­ше ткни­те в&amp;nbsp;label и&amp;nbsp;дви­гай­те его&amp;nbsp;ле­вую гра­ни­цу вле­во, по­ка не&amp;nbsp;по­явит­ся си­няя вер­ти­каль­ная по­ло­са при­мер­но в&amp;nbsp;сан­ти­мет­ре от&amp;nbsp;края се­ро­го по­ля. От­пу­сти­те гра­ни­цу. Ана­ло­гич­но дви­гай­те пра­вую гра­ни­цу впра­во, по­ка не&amp;nbsp;по­явит­ся си­няя по­ло­са спра­ва. Те­перь клик­ни­те два&amp;nbsp;ра­за на&amp;nbsp;label и&amp;nbsp;на­пи­ши­те&amp;nbsp;&lt;i&gt;Hello World!&lt;/i&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Пре­крас­но, мы&amp;nbsp;со­зда­ли нуж­ную над­пись в&amp;nbsp;label&apos;е, ко­то­рый рас­по­ло­жен точ­но по&amp;nbsp;цен­тру экра­на. Но&amp;nbsp;на­до, что­бы и&amp;nbsp;текст сто­ял по&amp;nbsp;цен­тру. Сде­лать это&amp;nbsp;про­ще про­сто­го.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;На­жми­те&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Shift&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;I&lt;/span&gt;&lt;/span&gt;&amp;nbsp;— это&amp;nbsp;вол­шеб­ное со­че­та­ние кла­виш от­кры­ва­ет ин­спек­тор, в&amp;nbsp;ко­то­ром мож­но ме­нять ат­ри­бу­ты вы­де­лен­но­го в&amp;nbsp;дан­ный мо­мент объ­ек­та. То&amp;nbsp;же&amp;nbsp;са­мое мож­но сде­лать и&amp;nbsp;че­рез ме­ню&amp;nbsp;&lt;span class=&quot;wikiMenu&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Tools&lt;/span&gt;&lt;span class=&quot;wikiMenuArrow&quot; style=&quot;margin-right: 2px; margin-left: 3px;&quot;&gt;→&lt;/span&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Inspector&lt;/span&gt;&lt;/span&gt;. От­кро­ет­ся окош­ко с&amp;nbsp;за­го­лов­ком&amp;nbsp;&lt;i&gt;Label Attributes&lt;/i&gt;. На&amp;nbsp;пер­вой его&amp;nbsp;вклад­ке вы­бе­рем&amp;nbsp;&lt;i&gt;Alignment: center&lt;/i&gt;. Те­перь мы&amp;nbsp;мо­жем быть уве­ре­ны, что&amp;nbsp;на­ша над­пись бу­дет в&amp;nbsp;точ­но­сти по­се­ре­дине ок­на.&lt;/p&gt;&lt;div class=&quot;funnyQuote hyphenate&quot; style=&quot;margin: 10px 0px; padding: 0px 0px 0px 34px; line-height: 18.1875px; background-image: url(http://touchdev.ru/i/textIconQuote.png); background-color: rgb(255, 255, 255); position: relative; font-family: Arial, sans-serif; font-size: 14px; background-position: 0px 100%; background-repeat: no-repeat no-repeat;&quot;&gt;&lt;div class=&quot;topLeft&quot; style=&quot;margin: 0px; padding: 0px; line-height: 1.3em; position: absolute; left: 34px; width: 9px; height: 9px; top: 0px; background-image: url(http://touchdev.ru/i/textIconQuoteLeftTop.png); background-position: initial initial; background-repeat: no-repeat no-repeat;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;topRight&quot; style=&quot;margin: 0px; padding: 0px; line-height: 1.3em; position: absolute; right: 0px; width: 10px; height: 9px; top: 0px; background-image: url(http://touchdev.ru/i/textIconQuoteRightTop.png); background-position: initial initial; background-repeat: no-repeat no-repeat;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;bottomLeft&quot; style=&quot;margin: 0px; padding: 0px; line-height: 1.3em; position: absolute; left: 34px; width: 9px; height: 9px; bottom: 0px; background-image: url(http://touchdev.ru/i/textIconQuoteLeftBottom.png); background-position: initial initial; background-repeat: no-repeat no-repeat;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;bottomRight&quot; style=&quot;margin: 0px; padding: 0px; line-height: 1.3em; position: absolute; right: 0px; width: 10px; height: 9px; bottom: 0px; background-image: url(http://touchdev.ru/i/textIconQuoteRightBottom.png); background-position: initial initial; background-repeat: no-repeat no-repeat;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;text&quot; style=&quot;margin: 0px; padding: 20px 8px 20px 20px; line-height: 1.3em; background-color: rgb(230, 230, 230); font-size: 10pt;&quot;&gt;В ин­спек­то­ре 4&amp;nbsp;вклад­ки, и&amp;nbsp;что­бы сра­зу от­крыть нуж­ную, вме­сто Cmd+Shift+I мож­но на­жи­мать Cmd+1, Cmd+2, Cmd+3&amp;nbsp;или&amp;nbsp;Cmd+4 со­от­вет­ствен­но. Для&amp;nbsp;пе­ре­клю­че­ния меж­ду вклад­ка­ми та­к­же мож­но ис­поль­зо­вать эти&amp;nbsp;шорт­ка­ты.&lt;/div&gt;&lt;/div&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;В&amp;nbsp;ре­зуль­та­те, окош­ко долж­но по­лу­чить­ся у&amp;nbsp;вас&amp;nbsp;при­мер­но та­ким, как&amp;nbsp;на&amp;nbsp;скрин­шо­те ни­же.&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/359.upload&quot; class=&quot;imagePreview&quot; width=&quot;400&quot; height=&quot;352&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Со­хра­ни­те файл на­жа­ти­ем&amp;nbsp;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;S&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;или&amp;nbsp;&lt;span class=&quot;wikiMenu&quot; style=&quot;font-style: italic;&quot;&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;wikiMenuArrow&quot; style=&quot;margin-right: 2px; margin-left: 3px;&quot;&gt;→&lt;/span&gt;&lt;span class=&quot;wikiMenuItem&quot;&gt;Save&lt;/span&gt;&lt;/span&gt;), вер­ни­тесь в&amp;nbsp;Xcode и&amp;nbsp;опять за­пу­сти­те при­ло­же­ние&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;wikiKeys&quot; style=&quot;font-style: italic; white-space: nowrap;&quot;&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Cmd&lt;/span&gt;&lt;span class=&quot;wikiKeysPlus&quot; style=&quot;margin-right: 1px; margin-left: 2px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;wikiKeysItem&quot;&gt;Return&lt;/span&gt;&lt;/span&gt;). На&amp;nbsp;этот цель до­стиг­ну­та&amp;nbsp;— мы&amp;nbsp;ви­дим на&amp;nbsp;экране стро­ку «Hello World!».&lt;/p&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;div class=&quot;imageDivCenter&quot; style=&quot;margin: 20px auto; padding: 0px; line-height: 18.1875px; font-family: Arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;http://touchdev.ru/361.upload&quot; class=&quot;imagePreview&quot; width=&quot;250&quot; height=&quot;452&quot; style=&quot;border: 0px none; display: block; margin-left: auto; margin-right: auto;&quot;&gt;&lt;div class=&quot;imageTitle&quot; style=&quot;margin: 10px 0px 0px; padding: 0px; line-height: 1.3em; text-align: center; font-size: 8pt; font-weight: bold;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/p&gt;&lt;a name=&quot;10&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h2 style=&quot;margin: 30px 0px 0px; padding: 0px; font-size: 14pt; line-height: 1.286em;&quot;&gt;Меняем текст сообщения в&amp;nbsp;коде&lt;/h2&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/span&gt;&lt;p class=&quot;hyphenate&quot; style=&quot;margin: 1.5em 0px 0px; padding: 0px; font-size: 14px; line-height: 18.1875px; font-family: Arial, sans-serif; background-color: rgb(255, 255, 255);&quot;&gt;Оста­но­вить­ся на&amp;nbsp;та­ком про­стом при­ло­же­нии бы­ло бы&amp;nbsp;про­сто непри­лич­но&lt;span class=&quot;sbrace&quot; style=&quot;margin-right: 0.153846em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;hbrace&quot; style=&quot;margin-left: -0.153846em;&quot;&gt;(&lt;/span&gt;тем бо­лее, что&amp;nbsp;мы&amp;nbsp;по­ка не&amp;nbsp;на­пи­са­ли ни&amp;nbsp;строч­ки ко­да), так&amp;nbsp;что&amp;nbsp;бу­дем его&amp;nbsp;по­не­мно­гу услож­нять. Для&amp;nbsp;на­ча­ла на­учим­ся ме­нять текст label-​а не&amp;nbsp;в&amp;nbsp;Interface Builder-​е, а&amp;nbsp;в&amp;nbsp;ко­де при­ло­же­ния.&lt;/p&gt;&lt;a name=&quot;11&quot; style=&quot;color: rgb(32, 32, 128); font-family: Arial, sans-serif; font-size: 14px; line-height: 18.1875px; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h3 style=&quot;margin: 1.5em 0px 2px; padding: 0px; font-size: 12pt; line-height: 1.5em;&quot;&gt;&lt;br&gt;&lt;/h3&gt;&lt;/a&gt;&lt;/div&gt;</content:encoded>
			<link>https://kolia2017.ucoz.com/news/sozdanie_pervogo_prilozhenija_dlja_iphone/2013-03-10-3</link>
			<dc:creator>kolia2017</dc:creator>
			<guid>https://kolia2017.ucoz.com/news/sozdanie_pervogo_prilozhenija_dlja_iphone/2013-03-10-3</guid>
			<pubDate>Sun, 10 Mar 2013 12:09:08 GMT</pubDate>
		</item>
	</channel>
</rss>