{"id":255189,"date":"2015-04-14T13:29:09","date_gmt":"2015-04-14T09:29:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=255189"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=255189","title":{"rendered":"\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 Popover \u0432 iOS 8.3"},"content":{"rendered":"<p>     \t\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u044b Popover \u0432 iOS 8 \u043f\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430\u043c \u043a\u0443\u0440\u0441\u0430 \u043b\u0435\u043a\u0446\u0438\u0439 \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0435 <a href=\"http:\/\/bestkora.com\/IosDeveloper\/ios-8-swift\/\">\u00ab\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Swift. CS193P 2015 \u0433.\u00bb <\/a>\u0412 \u041b\u0435\u043a\u0446\u0438\u0438 7 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u043e\u0440 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c Popover \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u00ab\u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e\u00bb \u043e\u043a\u043e\u0448\u043a\u0430 \u043a\u0430\u043a \u043d\u0430 iPad (\u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e), \u0442\u0430\u043a \u0438 \u043d\u0430 iPhone ( \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u00ab\u041d\u0415\u0422\u00bb \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0438). <br \/>  \u041d\u043e \u0432 iOS 8.3 \u0432\u0441\u0435 \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u0442\u0441\u044f:   <\/p>\n<ul>\n<li>\u043d\u0430 iPhone Popover \u043e\u043a\u043e\u0448\u043a\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0432\u0438\u0434\u0435 \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c \u043a\u0430\u043a \u0443\u0439\u0442\u0438, <\/li>\n<li>\u0430 \u043d\u0430 iPhone 6 Plus \u0432 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0430 iPad \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u043a\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e \u043a\u0430\u043a FormSheet, \u0438 \u0441 \u043d\u0435\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u0443\u0439\u0442\u0438. <\/li>\n<\/ul>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0447\u0435\u043c \u0442\u0443\u0442 \u0434\u0435\u043b\u043e, \u0438 \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/37d\/346\/5cb\/37d3465cbe394dfa8baf98c71162b060.png\"\/><br \/>  <a name=\"habracut\"><\/a><\/p>\n<h2>\u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c Popover \u0434\u043e iOS 8.3<\/h2>\n<p>  \u0421\u0430\u043c\u043e \u043f\u043e \u0441\u0435\u0431\u0435 <b>Popover<\/b> \u2014 \u043d\u0435 <b>UIViewController<\/b>. \u041e\u043d \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c <b>Presentation Controller<\/b>. Popover \u043d\u0430 iPad \u201c\u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442\u201d \u0442\u0430\u043a, \u043a\u0430\u043a \u0432\u044b \u0432\u0438\u0434\u0435\u043b\u0438 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u0432\u044b\u0448\u0435 \u0434\u043b\u044f iOS 8.2. \u0412 \u0432\u0438\u0434\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u043e\u043a\u043e\u0448\u043a\u0430 \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u043e\u0439. \u041d\u0430 iPhone Popover <b>\u0430\u0434\u0430\u043f\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f<\/b> \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u043e\u043a\u043e\u0448\u043a\u0430 \u0432 \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u043d\u0430 \u043f\u043e\u043b\u043d\u044b\u0439 \u044d\u043a\u0440\u0430\u043d. \u041e\u043d\u043e \u043d\u0435 \u201c\u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442\u201d \u043a\u0430\u043a \u0447\u0442\u043e-\u0442\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u043d\u0430 iPhone. \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f iPhone 6 Plus, \u0442\u043e \u0432 \u043f\u043e\u0440\u0442\u0440\u0435\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043e\u043d \u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a iPhone ( \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043a\u043d\u043e \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d), \u0430 \u0432 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043a\u0430\u043a iPad ( \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u00ab\u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435\u00bb \u043e\u043a\u043d\u043e). \u0422\u0430\u043a\u0430\u044f \u0410\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u044f \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. iOS 8 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u0443 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u044e \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f <b>Split View<\/b> \u0438<b> Navigation Controller<\/b> \u0434\u043b\u044f <b>iPhone<\/b>. <br \/>  \u041f\u0435\u0440\u0435\u0434 iOS 8.3, \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c Popover \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430, \u043a\u043e\u0433\u0434\u0430 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 <b>size class<\/b> \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0442<b> Regular<\/b> \u043a <b>Compact<\/b>. <\/p>\n<p>  \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 iOS 8 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 <b>Any<\/b>&#8212;<b>Compact<\/b> \u043d\u0435 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u0441\u0440\u0435\u0434\u0443 \u0434\u043b\u044f Popover, \u0430 \u043a\u0430\u043a \u043d\u0443\u0436\u0434\u0430\u044e\u0449\u0443\u044e\u0441\u044f \u0432 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u0442\u0438\u043b\u0435 \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u041d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430 <b>UIPopoverPresentationControllerDelegate<\/b>, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u044d\u0442\u0443 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u044e \u0438 \u0434\u0430\u0436\u0435 \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0435\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u043f\u0440\u0438\u0431\u043e\u0440\u0435 Popover \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043a\u0430\u043a \u043d\u0430 iPad. <\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430 <b>UIPopoverPresentationControllerDelegate<\/b> \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434<\/p>\n<pre><code>   func adaptivePresentationStyleForPresentationController(controller: UIPresentationController) -&gt; UIModalPresentationStyle  <\/code><\/pre>\n<p>  , \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e, \u043e\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0438\u043b\u044c \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0434\u043b\u044f \u0441\u043b\u0443\u0447\u0430\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 <b>View Controller<\/b> \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e <b>Compact<\/b>.<br \/>  \u041d\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/p>\n<pre><code>   func adaptivePresentationStyleForPresentationController(controller: UIPresentationController) -&gt; UIModalPresentationStyle {         return UIModalPresentationStyle.None } <\/code><\/pre>\n<p>  \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u043f\u0440\u0438\u0431\u043e\u0440\u0435 Popover \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430 \u043a\u0430\u043a \u043d\u0430 iPad. <br \/>  \u041d\u043e \u0432 \u0432 iOS 8.3 \u044d\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u0441\u0432\u0435\u0440\u0445\u0443.<\/p>\n<h2>\u041d\u043e\u0432\u043e\u0435 \u0432 iOS 8.3<\/h2>\n<p>  iOS 8.3 \u00ab\u0434\u0443\u043c\u0430\u0435\u0442\u00bb \u043e\u0431 \u0410\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0430\u0447\u0435, \u0438 \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c <b>\u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u0435\u0442\u0441\u044f <\/b>\u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 <b>HorizontalSize<\/b> \u0432 iOS 8.3. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e public API \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430 <b>UIAdaptivePresentationControllerDelegate<\/b> (\u044d\u0442\u043e <code>superclass <\/code> \u0434\u043b\u044f UIPopoverPresentationControllerDelegate ) \u0443\u0441\u0438\u043b\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c:<\/p>\n<pre><code>func adaptivePresentationStyleForPresentationController(controller: UIPresentationController, traitCollection: UITraitCollection) -&gt; UIModalPresentationStyle <\/code><\/pre>\n<p>  \u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435, \u0447\u0442\u043e \u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0442\u0438\u043f\u0430 <code>UITraitCollection<\/code>. \u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e <b>\u043c\u044b <\/b>\u043c\u043e\u0436\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 <code>size class<\/code> \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0442 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0441\u0442\u0438\u043b\u044f.<\/p>\n<h2>\u00ab\u0417\u0430\u0441\u0430\u0434\u0430\u00bb \u0432 iOS 8.3 Popover<\/h2>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 Popover \u0432\u044b\u0448\u0435 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u043d\u0435\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e. \u0415\u0441\u043b\u0438 \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432 iOS 8.3 SDK \u0441 Popover, \u0442\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u0435, \u0447\u0442\u043e Popovers \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 iPhone 6 Plus \u0432 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043a\u0430\u043a FormSheets, \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e. \u042d\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0438 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e. \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0441\u044c \u043d\u043e\u0432\u044b\u043c API, \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e. \u041d\u043e \u0442\u0430\u043a\u0436\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, <b>UIPopoverPresentationController<\/b> \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c <b>.FormSheet<\/b> \u0434\u043b\u044f <b>Regular-Compact<\/b> \u0441\u0440\u0435\u0434\u044b. \u0425\u043e\u0440\u043e\u0448\u043e, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 public API \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u043d\u043e\u0432\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0438, \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0435\u0433\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e<\/p>\n<pre><code>\/\/ \u0414\u043b\u044f iOS 8.3 SDK          func adaptivePresentationStyleForPresentationController(controller: UIPresentationController, traitCollection: UITraitCollection) -&gt; UIModalPresentationStyle {         return UIModalPresentationStyle.None     }<\/code><\/pre>\n<p>  \u041c\u043d\u0435 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435.<\/p>\n<h2>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/h2>\n<p>  \u0421 \u044d\u0442\u0438\u043c \u043d\u043e\u0432\u044b\u043c API, \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e <b>\u0421ompact<\/b>. \u042f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 Apple<b> _not Regular<\/b>\u2013 \u043f\u043e \u043e\u0431\u043e\u0438\u043c \u043e\u0441\u044f\u043c. \u0415\u0441\u043b\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 size classes \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044fi Regular, \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043d\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0438. \u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0443 \u043d\u0430\u0441 \u0434\u0432\u0430 size classes \u2014 <b>Compact<\/b> \u0438 <b>Regular<\/b> \u2014 \u043d\u043e Apple \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 size classes ( \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, iPad Pro \u0438\u043b\u0438 Apple TV). \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u0443\u043c\u0430\u0442\u044c \u043e <b>Any<\/b>&#8212;<b>Compact<\/b> \u0438\u043b\u0438 <b>Compact<\/b>&#8212;<b>Any<\/b> \u043a\u0430\u043a \u043e\u0431 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445, \u043d\u043e \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 <b>Any<\/b>&#8212;<b>!Regular<\/b> \u0438<b> !Regular<\/b>&#8212;<b>Any<\/b>. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0447\u0442\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u043b\u044b\u0435 Trait\u0421ollections, \u043d\u043e \u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u0435.<\/p>\n<p>  \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 \u0441\u0442\u0430\u0442\u044c\u0435<a href=\"http:\/\/averagejake.com\/post\/115903301162\/adaptability-changes-in-ios-8-3\"> \u00abAdaptability Changes in iOS 8.3\u00bb<\/a>.     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/255697\/\"> http:\/\/habrahabr.ru\/post\/255697\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u044b Popover \u0432 iOS 8 \u043f\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430\u043c \u043a\u0443\u0440\u0441\u0430 \u043b\u0435\u043a\u0446\u0438\u0439 \u0441\u0442\u044d\u043d\u0444\u043e\u0440\u0434\u0441\u043a\u043e\u0433\u043e \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0435 <a href=\"http:\/\/bestkora.com\/IosDeveloper\/ios-8-swift\/\">\u00ab\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 iOS 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Swift. CS193P 2015 \u0433.\u00bb <\/a>\u0412 \u041b\u0435\u043a\u0446\u0438\u0438 7 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u043e\u0440 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c Popover \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u00ab\u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e\u00bb \u043e\u043a\u043e\u0448\u043a\u0430 \u043a\u0430\u043a \u043d\u0430 iPad (\u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e), \u0442\u0430\u043a \u0438 \u043d\u0430 iPhone ( \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u00ab\u041d\u0415\u0422\u00bb \u0430\u0434\u0430\u043f\u0442\u0430\u0446\u0438\u0438). <br \/>  \u041d\u043e \u0432 iOS 8.3 \u0432\u0441\u0435 \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u0442\u0441\u044f:   <\/p>\n<ul>\n<li>\u043d\u0430 iPhone Popover \u043e\u043a\u043e\u0448\u043a\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0432\u0438\u0434\u0435 \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 \u043d\u0430 \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0448\u044c \u043a\u0430\u043a \u0443\u0439\u0442\u0438, <\/li>\n<li>\u0430 \u043d\u0430 iPhone 6 Plus \u0432 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0430 iPad \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u043a\u043d\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0430\u043b\u044c\u043d\u043e \u043a\u0430\u043a FormSheet, \u0438 \u0441 \u043d\u0435\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043d\u0438\u043a\u0443\u0434\u0430 \u0443\u0439\u0442\u0438. <\/li>\n<\/ul>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0447\u0435\u043c \u0442\u0443\u0442 \u0434\u0435\u043b\u043e, \u0438 \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/37d\/346\/5cb\/37d3465cbe394dfa8baf98c71162b060.png\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-255189","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255189"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/255189\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}