{"id":192100,"date":"2013-09-01T00:37:02","date_gmt":"2013-08-31T20:37:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=192100"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=192100","title":{"rendered":"<span class=\"post_title\">\u0417\u0430\u043f\u0438\u0441\u043a\u0438 \u0424\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u0430: \u0414\u0435\u043b\u0438\u043c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c, \u0447\u0430\u0441\u0442\u044c 2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/00f\/f0d\/0c9\/00ff0d0c91c6c6923a55415f87295146.gif\" \/><\/div>\n<p>  \u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u0425\u0430\u0431\u0440\u0430!<br \/>  \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0435\u0440\u0438\u0438 \u00ab\u0417\u0430\u043f\u0438\u0441\u043a\u0438 \u0424\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u0430\u00bb.<\/p>\n<p>  \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:  <\/p>\n<ol>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/192062\/\">\u0427\u0430\u0441\u0442\u044c 1: \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0424\u0430\u0439\u043b\u0430\u043c\u0438; \u0428\u0430\u0431\u043b\u043e\u043d Singleton; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0410\u0443\u0434\u0438\u043e; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0412\u0438\u0434\u0435\u043e; In-App Purchases<\/a><\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/192100\/\">\u0427\u0430\u0441\u0442\u044c 2: \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430 (Popups); \u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Modal Segue \u0432 Navigation Controller; Core Graphics; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 UIWebView \u0438 ScrollView<\/a><\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 3: \u0416\u0438\u0437\u043d\u044c \u0431\u0435\u0437 Autolayout; Splash Screen; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u0432 iOS 6+; \u0421\u0434\u0432\u0438\u0433 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e UITextField<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 4: Google Analytics; Push Notifications; PSPDFKit; \u0412\u0445\u043e\u0434 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Facebook; \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0437\u044c\u044f\u043c \u2014 Facebook, Twitter, Email<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 5: Core Data; UITableView \u0438 UICollectionView<\/li>\n<\/ol>\n<p>  \u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u043a\u043d\u0430\u043c\u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0431\u0448\u0438\u0440\u043d\u0430\u044f \u0442\u0435\u043c\u0430. \u0410 \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u2014 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Modal Segue \u0432 Navigation Controller<\/h4>\n<p>  \u0418 \u0442\u0430\u043a, \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 Navigation Controller&#8217;\u0430 \u2014 \u00ab\u043d\u0430\u0445\u043b\u0435\u0441\u0442 \u0441\u043f\u0440\u0430\u0432\u0430\u00bb \u2014 \u0438 \u043e\u043d \u0445\u043e\u0447\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043d\u043e\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0441\u044f \u00ab\u043f\u043e\u0432\u043e\u0440\u043e\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0430 \u0441\u043d\u0438\u0437\u0443\u00bb. \u0421\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u0438\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438: \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0432\u0438\u0434 Segue \u043d\u0430 Modal. \u0412\u0441\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u0445\u043e\u0440\u043e\u0448\u043e, \u0434\u0430 \u0432\u043e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u0433\u0438\u043a\u0430 Navigation Controller&#8217;a \u0441 \u0435\u0433\u043e \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0435\u0439 \u044d\u043a\u0440\u0430\u043d\u043e\u0432 \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u0442\u0441\u044f; \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0432\u044b\u043b\u0435\u0442\u0430\u0435\u0442. \u0422\u043e \u0435\u0441\u0442\u044c \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 Modal Segue, \u043d\u043e \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 Push Segue. \u041f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044e, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043f\u043e\u043f\u0440\u043e\u0449\u0435 \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443, \u043d\u043e \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441 UIStoryboardSegue. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c, \u044d\u0442\u043e .m \u0444\u0430\u0439\u043b \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430. \u0410 \u0442\u043e\u0447\u043d\u0435\u0435, \u043c\u0435\u0442\u043e\u0434 <i>perform<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">- (void) perform{     \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u044d\u043a\u0440\u0430\u043d\u044b, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c     UIViewController *src = (UIViewController *) self.sourceViewController;     UIViewController *dst = (UIViewController *) self.destinationViewController;     \/\/ \u041e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434     [UIView transitionFromView:src.view                         toView:dst.view                       duration:1                        options:UIViewAnimationOptionTransitionFlipFromBottom                     completion:nil];      \/\/ \u041e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u0434\u043b\u044f Navigation Controller'a     [UIView transitionFromView:src.navigationItem.titleView                         toView:dst.navigationItem.titleView                       duration:1                        options:UIViewAnimationOptionTransitionFlipFromBottom                     completion:nil];      \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Push \u043d\u0430\u0448\u0435\u0439 Segue     [src.navigationController pushViewController:dst animated:NO]; } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e UIViewAnimationOptionTransitionFlipFromBottom \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0431\u043b\u0438\u0437\u043a\u0438\u0439 \u0441\u0435\u0440\u0434\u0446\u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0441\u0442\u0438\u043b\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430.<br \/>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435! \u041a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e, \u0441\u043a\u0430\u0436\u0435\u0442\u0435 \u0432\u044b. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0439 Storyboard Segue \u0441\u0442\u0438\u043b\u044c Custom, \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0448 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0438 \u0437\u0430\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c Navigation Controller Segue \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0442\u0438\u043f\u043e\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430.<\/p>\n<h4>Core Graphics<\/h4>\n<p>  \u0412 \u043e\u0434\u0438\u043d \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0430\u0448\u0435\u043c\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043d\u0430\u0434\u043e\u0435\u043b\u043e \u043f\u0438\u043d\u0430\u0442\u044c \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0448\u0438\u0440\u0438\u043d\u0443 \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 5 \u043f\u0438\u043a\u0441\u0435\u043b\u043e\u0432 (\u0432\u0435\u0434\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0438 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443). \u0421\u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0441 \u0437\u0430\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u0440\u0430\u044f\u043c\u0438 \u0438 \u0438 \u0440\u0430\u043c\u043a\u043e\u0439 \u0432\u043e\u043a\u0440\u0443\u0433 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 QuartzCore.framework. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u043a\u0430\u043a \u0438 \u0441 \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d\u043e\u043c, \u044d\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0441\u043d\u0438\u043f\u043f\u0435\u0442, \u0443\u0441\u043a\u043e\u0440\u044f\u044e\u0449\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c.<\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435-\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043b\u044e\u0431\u044b\u043c \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u043e\u043c UIView (UIButton \u043a\u0430\u043a-\u0440\u0430\u0437 \u0438\u043c \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f). \u041c\u044b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 <i>drawRect:<\/i> \u0443 \u043d\u0430\u0448\u0435\u0433\u043e UIView:<\/p>\n<pre><code class=\"objectivec\">- (void)drawRect:(CGRect)rect {     [super drawRect:rect];          self.layer.cornerRadius = 5.0f;     self.layer.masksToBounds = YES;      self.layer.borderColor = [UIColor whiteColor].CGColor;     self.layer.borderWidth = 1.0f; } <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043f\u0440\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0430\u0448 \u043a\u043e\u0434 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0443\u043f\u0435\u0440\u043a\u043b\u0430\u0441\u0441 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442 \u0441\u0432\u043e\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u0422\u0430\u043a \u0447\u0442\u043e \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u043e\u0442 \u0436\u0435 \u043c\u0435\u0442\u043e\u0434, \u043d\u043e \u0443 \u0441\u0443\u043f\u0435\u0440\u043a\u043b\u0430\u0441\u0441\u0430. \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u0440\u0430\u0434\u0438\u0443\u0441 \u0437\u0430\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u044f \u0443\u0433\u043b\u043e\u0432 \u0443 \u0441\u043b\u043e\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u043e\u0439 \u043f\u043e\u0434\u0447\u0438\u043d\u044f\u0442\u044c\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043c\u0430\u0441\u043a\u0435. \u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u0440\u0430\u043c\u043a\u0438 (CGColor, \u043a\u043e\u043d\u0435\u0447\u043d\u043e) \u0438 \u0435\u0435 \u0442\u043e\u043b\u0449\u0438\u043d\u0443.<br \/>  \u042f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0436\u0438\u0434\u0430\u043b\u0438 \u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043e\u043c, \u043d\u043e \u043d\u0430 \u0442\u043e \u043e\u043d\u0438 \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0438 \u0444\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u0430 \u2014 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0441 Core Graphics, \u0442\u043e\u0433\u0434\u0430 \u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<h4>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 UIWebView \u0438 ScrollView<\/h4>\n<p>  \u0423 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c UIWebView, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u043c \u0432 \u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442:<\/p>\n<pre><code class=\"objectivec\">NSString *htmlString; NSString *cssString;  &lt;...\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438...&gt;  htmlString = [NSString stringWithFormat:@&quot;&lt;style&gt;%@&lt;\/style&gt;%@&quot;, cssString, htmlString]; NSURL *url = [[NSURL alloc] initFileURLWithPath:pathToApplicationDirectory];      [webView loadHTMLString:htmlString baseURL:url]; <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0432\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0443 \u0441 \u043d\u0430\u0448\u0438\u043c \u0441\u0442\u0438\u043b\u0435\u043c \u0438 html. \u041d\u043e \u043a\u0430\u043a\u0430\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0441\u0442\u044c! \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432\u043d\u0438\u0437, \u0435\u0441\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u00ab\u043e\u0442\u043f\u0440\u044b\u0433\u0438\u0432\u0430\u043d\u0438\u0435\u00bb, \u0442\u043e \u043f\u0440\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u0438\u043b\u044c\u043d\u043e\u043c \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u0435, \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0441\u0435\u0440\u044b\u0435 (\u043e\u0447\u0435\u043d\u044c \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435!) \u043f\u043e\u043b\u044f \u043e\u0432\u0435\u0440\u0441\u043a\u0440\u043e\u043b\u043b\u0430. \u042f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 UIWebView \u0438 \u0441\u043b\u0435\u0433\u043a\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">- (id)initWithFrame:(CGRect)frame {     self = [super initWithFrame:frame];     if (self) {         [self hideOverscrollShadowsForWebView:self];     }     return self; }  - (id)initWithCoder:(NSCoder *)aDecoder {     self = [super initWithCoder:aDecoder];     if (self) {         [self hideOverscrollShadowsForWebView:self];     }     return self; } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0431\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0441\u0432\u043e\u0435\u043c \u043a\u043e\u0434\u0435 \u0432\u044b \u0441\u043a\u043e\u0440\u0435\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <i>initWithFrame:<\/i>; \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f, \u043a\u0430\u043a UIWebView \u0438\u0437 Stroryboard \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c <i>initWithCoder:<\/i>.<br \/>  \u0418, \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0441\u0430\u043c \u043c\u0435\u0442\u043e\u0434, \u043f\u0440\u044f\u0447\u0443\u0449\u0438\u0439 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0435 \u0433\u043b\u0430\u0437\u0443 \u0441\u0435\u0440\u044b\u0435 \u0442\u0435\u043d\u0438:<\/p>\n<pre><code class=\"objectivec\">\/*!  \u041c\u0435\u0442\u043e\u0434, \u043f\u0440\u044f\u0447\u0443\u0449\u0438\u0439 \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0443\u0436\u0430\u0441\u043d\u044b\u0435 \u0438 \u043d\u0435\u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0442\u0435\u043d\u0438 \u0443 \u0434\u0430\u043d\u043d\u043e\u0433\u043e UIWebView  \\param webView \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c WebView, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c  *\/ - (void)hideOverscrollShadowsForWebView:(UIWebView *)webView {     id scrollview = [webView.subviews objectAtIndex:0];     for (UIView *subview in [scrollview subviews])         if ([subview isKindOfClass:[UIImageView class]])             subview.hidden = YES;          webView.backgroundColor = [UIColor clearColor]; } <\/code><\/pre>\n<p>  \u041c\u044b \u043f\u0440\u044f\u0447\u0435\u043c \u0432\u0441\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u0432\u0438\u0434\u044b \u0443 Scrollview, \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0435\u0433\u043e \u043d\u0430\u0448\u0435\u043c\u0443 UIWebView. \u0410 \u0442\u0430\u043a \u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u0437\u0430\u0434\u043d\u0438\u0439 \u0444\u043e\u043d.<\/p>\n<p>  \u041e UIScrollView \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e: \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e contentSize, \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u0430\u043c \u0441\u0447\u0430\u0441\u0442\u044c\u0435.<\/p>\n<h4>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430 (Popups)<\/h4>\n<p>  \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u0433\u0438\u0433\u0430\u043d\u0442\u0435 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0431\u0435\u0437 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u0432\u0438\u0434 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043e\u043a\u043e\u043d. \u0427\u0442\u043e \u0436\u0435, \u0437\u0430 \u0434\u0435\u043b\u043e!<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0442\u0435\u043e\u0440\u0438\u0438, \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u044b \u0432\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043d\u0435\u043c.<br \/>  \u0412 Storyboard \u0443 \u043d\u0430\u0441 \u0432\u0440\u044f\u0434 \u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e, \u0430 \u0432\u043e\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b PopupView.xib \u043c\u044b \u043c\u043e\u0436\u0435\u043c!<br \/>  \u0410 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 PopupView, PopupController, PopupControllerDelegate.<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0431\u0435\u0440\u0438\u0442\u0435 \u043c\u0430\u043a\u0435\u0442 \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043d\u0430 \u043a\u0430\u043a \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435. \u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043e File&#8217;s Owner \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0430 PopupController, \u0430 \u0441\u0430\u043c View \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0430 PopupView. Background View \u2014 \u044d\u0442\u043e \u043f\u043e\u043b\u0443\u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u0441\u0432\u0435\u0442\u043b\u043e-\u0441\u0435\u0440\u044b\u0439 UIView.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/443\/f0f\/aa3\/443f0faa3c0f282b007c6ef94d939735.png\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e <i>PopupView.h<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">#import &lt;UIKit\/UIKit.h&gt; @interface PopupView : UIView  @property (strong, nonatomic) IBOutlet UIView *backgroundView; @property (strong, nonatomic) IBOutlet UIView *innerPopupView; @property (strong, nonatomic) IBOutlet UILabel *popupTitleLabel; @property (strong, nonatomic) IBOutlet UILabel *popupTextLabel; @property (strong, nonatomic) IBOutlet UIButton *popupButton;  @end <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0446\u0435\u043f\u0438\u043b\u0438 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432 \u043a\u043e\u0434; <i>PopupView.m<\/i> \u043c\u044b \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u043b\u0438, \u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434.<br \/>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043d\u0430, \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u043c\u0435\u043b\u043e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u0421\u043e\u0437\u0434\u0430\u0435\u043c PopupController.<\/p>\n<p>  <i>PopupController.h<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">#import &lt;Foundation\/Foundation.h&gt; #import &quot;PopupControllerDelegate.h&quot; #import &quot;PopupView.h&quot;  @interface PopupController : NSObject  \/\/ UIViewController, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438 \u0432 PopupView @property (strong, nonatomic) UIViewController&lt;PopupControllerDelegate&gt; *delegate; \/\/ \u041c\u0430\u0441\u0441\u0438\u0432 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043e\u043a\u043e\u043d. \u0418\u0445 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0440\u0430\u0437\u0443! @property (strong, nonatomic) NSMutableArray *activePopups;  - (IBAction)touchedButton:(UIButton *)sender;  - (id)initWithDelegate:(UIViewController&lt;PopupControllerDelegate&gt; *)delegate; - (void)showHelloWorldPopup; - (void)dismissAllPopups;  @end <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412\u0441\u0435 \u0447\u0442\u043e \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u2014 \u044d\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u043e\u043a\u0430\u0437\u0430 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u043e\u0433\u043e \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043d\u0430, \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u0432\u0441\u0435\u0445 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043e\u043a\u043e\u043d. \u0410 \u0435\u0449\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 Action \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043d\u0430 \u0432 PopupController.<\/p>\n<p>  <i>PopupController.m<\/i>:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">#import &quot;PopupController.h&quot;  @implementation PopupController  - (id)initWithDelegate:(UIViewController&lt;PopupControllerDelegate&gt; *)delegate {     self = [super init];     if (self) {         \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043e\u043a\u043e\u043d         self.activePopups = [NSMutableArray array];                  \/\/ \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0441\u0435\u0431\u0435 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430         self.delegate = delegate;     }     return self; }  - (void)showHelloWorldPopup {     PopupView *popup = [self popupFromRestorationID:@&quot;text&quot;];     [self configurePopup:popup];     [self showPopup:popup]; }  - (IBAction)touchedButton:(UIButton *)sender {     [self.delegate touchedPopupButton:sender]; }  - (void)dismissAllPopups {     for (UIView *popup in activePopups) {         [self hidePopup:popup];     } } &lt;...&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430.<br \/>  \u041a\u043e\u0434 \u043c\u0435\u0442\u043e\u0434\u0430 <i>showHelloWorldPopup<\/i> \u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b \u043d\u0430 \u0442\u0440\u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043b\u044f \u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u0438\u044f \u0447\u0442\u0435\u043d\u0438\u044f: \u043c\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e, \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c.<br \/>  \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0434\u043e\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u043c \u043e\u043a\u043d\u0435, \u043c\u044b \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u044f\u0435\u043c \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0430\u0448 \u0434\u0435\u043b\u0435\u0433\u0430\u0442.<br \/>  \u041c\u0435\u0442\u043e\u0434 <i>dismissAllPopups<\/i> \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u043e\u043a\u043d\u0430\u043c \u0432 \u043e\u0431\u0449\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u0435.<br \/>  \u0414\u043e\u043f\u0438\u0449\u0435\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0416\u043c\u0438 \u043c\u0435\u043d\u044f!<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"objectivec\">&lt;...&gt; - (PopupView *)popupFromRestorationID:(NSString *)restorationID {     \/\/ \u0417\u0430\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u0438\u0434\u044b \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e .xib \u0444\u0430\u0439\u043b\u0430     NSArray *allViews = [[NSBundle mainBundle] loadNibNamed:@&quot;PopupView.xib&quot; owner:self options:nil];      \/\/ \u041f\u0440\u043e\u0439\u0434\u0435\u043c\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0432\u0438\u0434\u0430\u043c     for (PopupView *view in allViews) {         \/\/ \u0415\u0441\u043b\u0438 restorationIdentifier \u0442\u043e\u0442, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d, \u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u043a\u043d\u043e, \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0443         if ([view.restorationIdentifier isEqualToString:restorationID]) {             view.alpha = 0.0f;             [self.delegate.view addSubview:view];             return view;         }     }     \/\/ \u041d\u0435 \u043d\u0430\u0448\u043b\u0438 \u043e\u043a\u043d\u043e! \u0412\u0435\u0440\u043d\u0435\u043c \u043f\u0443\u0441\u0442\u043e\u0442\u0443     return nil; }  - (void)showPopup:(PopupView *)popup {     \/\/ \u0423\u043c\u0435\u043d\u044c\u0448\u0438\u043c innerPopupView \u0434\u043e 50%     [popup.innerPopupView setTransform:CGAffineTransformMakeScale(0.5, 0.5)];      \/\/ \u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e     [UIView animateWithDuration:0.2f                      animations:^{                          \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043d\u0430                          popup.alpha = 1.0f;                            \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u043c\u0443 \u043e\u043a\u043d\u0443 \u0434\u043e 100%                          [popup.innerPopupView setTransform:CGAffineTransformMakeScale(1.0, 1.0)];                      }];          \/\/ \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u0437\u0430\u0434\u043d\u0438\u0439 \u0444\u043e\u043d     [popup.backgroundView addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismissAllPopups)]];          \/\/ \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043e\u043a\u043e\u043d     [activePopups addObject:popup]; }  - (void)hidePopup:(UIView *)popup {     \/\/ \u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e     [UIView animateWithDuration:0.2f                      animations:^{                          \/\/ \u0414\u0435\u043b\u0430\u0435\u043c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u043c                          popup.alpha = 0.0f;                      }                      completion:^(BOOL finished){                          \/\/ \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e ViewController'a                          [popup removeFromSuperview];                      }];          \/\/ \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438     [activePopups removeObject:popup]; }  - (void)configurePopup:(PopupView *)popup forName:(NSString *)name {     \/\/ \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a     popup.popupTitleLabel.text = @&quot;Popup Title&quot;;          \/\/ \u0412\u0441\u0442\u0430\u0432\u0438\u043c \u0442\u0435\u043a\u0441\u0442     popup.popupTextLabel.text = @&quot;Hello World!&quot;;      \/\/ \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043a\u0438     [self setTitle:@&quot;Okay&quot;]; }  - (void)setTitle:(NSString *)title forButton:(UIButton *)button {     [button setTitle:title forState:UIControlStateNormal];     [button setTitle:title forState:UIControlStateSelected];     [button setTitle:title forState:UIControlStateHighlighted];     [button setTitle:title forState:UIControlStateDisabled]; }  @end <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412\u0441\u0435 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u0438 \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e:<\/p>\n<ol>\n<li>\u0410\u043d\u0438\u043c\u0430\u0446\u0438\u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 UIView: \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0431\u043b\u043e\u043a\u0435 <i>animations:<\/i>, \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041a\u043e\u0434 \u0438\u0437 \u0431\u043b\u043e\u043a\u0430 <i>completion:<\/i> \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e, \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0431\u043b\u043e\u043a\u0430 <i>animations:<\/i><\/li>\n<li>\u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u043e\u0435 \u0437\u0430\u0442\u0435\u043c\u043d\u0435\u043d\u0438\u0435, \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442<\/li>\n<li>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0442\u043e \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0435\u043a\u0441\u0442 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u0435\u0442\u043e\u0434 <i>setTitle: forButton:<\/i> \u043c\u0435\u043d\u044f\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u0438 \u0441\u0440\u0430\u0437\u0443 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0439<\/li>\n<\/ol>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0432 \u043f\u043e\u0434\u043e\u0431\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043e\u043a\u043e\u043d, \u043c\u044b \u0434\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043c\u0435\u043d\u044f\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u043e\u043a\u043e\u043d \u0431\u0435\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u044f. \u041f\u0443\u0441\u043a\u0430\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u043c\u0435\u043d\u044f\u0435\u0442 \u0446\u0432\u0435\u0442, \u0440\u0430\u0437\u043c\u0435\u0440, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u2014 \u043f\u043e\u043a\u0430 \u043e\u043d \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u0435\u0442 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043a\u043e\u0434\u043e\u043c, \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043a\u0430\u043a \u043d\u0430\u0434\u043e.<\/p>\n<p>  \u041d\u0443, \u0438 \u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a, \u043f\u043e\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0441. \u0414\u043e\u043f\u0438\u0448\u0435\u043c <i>PopupControllerDelegate.h<\/i>:<\/p>\n<pre><code class=\"objectivec\">#import &lt;Foundation\/Foundation.h&gt; @protocol PopupControllerDelegate  @required - (void)touchedPopupButton:(UIButton *)sender;  @end <\/code><\/pre>\n<p>  \u041b\u044e\u0431\u043e\u0439 UIViewController, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0435 \u043e\u043a\u043d\u043e, \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043a\u043d\u0430, \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b PopupControllerDelegate.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c HelloWorld \u043e\u043a\u043e\u0448\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0432\u0438\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 \u0438 \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 popupController. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0432 <i>viewDidAppear:<\/i><\/p>\n<pre><code class=\"objectivec\">[popupController showHelloWorldPopup]; <\/code><\/pre>\n<p>  \u0418 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043e\u043a\u043d\u0430:<\/p>\n<pre><code class=\"objectivec\">- (void)touchedPopupButton:(UIButton *)sender {     \/\/ \u041f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043a\u0440\u043e\u0435\u043c \u0432\u0441\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430     [popupController dismissAllPopups]; } <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0442\u043e, \u0447\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u0434\u043e \u043a\u043e\u043d\u0446\u0430!<\/p>\n<p>  \u0412\u0442\u043e\u0440\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0432 \u0430\u044d\u0440\u043e\u043f\u043e\u0440\u0442\u0443 \u0414\u043e\u043c\u043e\u0434\u0435\u0434\u043e\u0432\u043e \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u043b\u0435\u0442\u043e\u043c \u0432 \u0412\u0430\u043d\u043a\u0443\u0432\u0435\u0440. \u0423\u0436\u0435 \u043f\u043e\u0437\u0434\u043d\u044f\u044f \u043d\u043e\u0447\u044c, \u0443 \u043c\u0435\u043d\u044f \u043a\u043e\u043d\u0447\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u0444\u0435. \u041f\u0440\u043e\u0448\u0443 \u043f\u043e\u043d\u044f\u0442\u044c <s>\u043f\u0440\u043e\u0441\u0442\u0438\u0442\u044c<\/s>, \u0438 \u0435\u0441\u043b\u0438 \u043d\u0430\u0448\u043b\u0438 \u043a\u0430\u043a\u0443\u044e-\u043b\u0438\u0431\u043e \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0443\\\u043d\u0435\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0432 \u0442\u0435\u043a\u0441\u0442\u0435\\\u043a\u043e\u0434\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u0432 <a href=\"http:\/\/habrahabr.ru\/users\/backmeupplz\/\">\u043c\u043e\u0439 \u0445\u0430\u0431\u0440\u0430\u0446\u0435\u043d\u0442\u0440<\/a>, \u043d\u0435 \u0441\u043f\u0435\u0448\u0438\u0442\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u0438\u043d\u0443\u0441 \u0438\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0433\u043d\u0435\u0432\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439.<\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0431\u0443\u0434\u0443\u0442 \u0442\u0435\u043c\u044b \u0435\u0449\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435: \u0440\u0430\u0441\u0448\u0430\u0440\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445, PSPDFKit, Push Notifications.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/192100\/\"> http:\/\/habrahabr.ru\/post\/192100\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/00f\/f0d\/0c9\/00ff0d0c91c6c6923a55415f87295146.gif\" \/><\/div>\n<p>  \u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u0425\u0430\u0431\u0440\u0430!<br \/>  \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u2014 \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0435\u0440\u0438\u0438 \u00ab\u0417\u0430\u043f\u0438\u0441\u043a\u0438 \u0424\u0440\u0438\u043b\u0430\u043d\u0441\u0435\u0440\u0430\u00bb.<\/p>\n<p>  \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435:  <\/p>\n<ol>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/192062\/\">\u0427\u0430\u0441\u0442\u044c 1: \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0424\u0430\u0439\u043b\u0430\u043c\u0438; \u0428\u0430\u0431\u043b\u043e\u043d Singleton; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0410\u0443\u0434\u0438\u043e; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0412\u0438\u0434\u0435\u043e; In-App Purchases<\/a><\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/post\/192100\/\">\u0427\u0430\u0441\u0442\u044c 2: \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043e\u043a\u043d\u0430 (Popups); \u041a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Modal Segue \u0432 Navigation Controller; Core Graphics; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 UIWebView \u0438 ScrollView<\/a><\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 3: \u0416\u0438\u0437\u043d\u044c \u0431\u0435\u0437 Autolayout; Splash Screen; \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439 \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u0432 iOS 6+; \u0421\u0434\u0432\u0438\u0433 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e UITextField<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 4: Google Analytics; Push Notifications; PSPDFKit; \u0412\u0445\u043e\u0434 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 Facebook; \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0437\u044c\u044f\u043c \u2014 Facebook, Twitter, Email<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c 5: Core Data; UITableView \u0438 UICollectionView<\/li>\n<\/ol>\n<p>  \u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u043c\u0438 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u043a\u043d\u0430\u043c\u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0431\u0448\u0438\u0440\u043d\u0430\u044f \u0442\u0435\u043c\u0430. \u0410 \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u2014 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435.  <\/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-192100","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192100","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=192100"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192100\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}