{"id":214637,"date":"2014-03-04T17:02:02","date_gmt":"2014-03-04T13:02:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=214637"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=214637","title":{"rendered":"<span class=\"post_title\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e UIActivity \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0444\u043e\u0442\u043e \u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 <a href=\"https:\/\/itunes.apple.com\/ru\/app\/photosuerte-zavodi-foto-druzej\/id710500285?mt=8&amp;amp;at=11lpud&amp;amp;ct=photosuerte_uiactivity_habr\">\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/a>\u00a0\u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044e \u0444\u043e\u0442\u043e \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438\u00a0\u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/uikit\/reference\/UIActivityViewController_Class\/Reference\/Reference.html\">UIActivityViewController<\/a>.   <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/4f1\/498\/b82\/4f1498b82c2db1f88585e3a7130d8fac.jpg\" alt=\"image\"\/><\/div>\n<p>  \u041f\u043e\u0438\u0441\u043a \u0432 \u0441\u0435\u0442\u0438 \u0434\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:  <\/p>\n<ol>\n<li><a href=\"https:\/\/github.com\/shu223\/UIActivityCollection\">\u0413\u043e\u0442\u043e\u0432\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435\u0442<\/a><\/li>\n<li>\u0415\u0441\u0442\u044c <a href=\"https:\/\/vk.com\/dev\/ios_sdk\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 sdk \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/a>: \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438, \u043d\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0447\u0435\u0440\u0435\u0437\u00a0<a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/uikit\/reference\/UIActivityViewController_Class\/Reference\/Reference.html\">UIActivityViewController<\/a><\/li>\n<li>\u0415\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f Apple \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e\u00a0<a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/uikit\/reference\/UIActivity_Class\/Reference\/Reference.html\">UIActivity<\/a><\/li>\n<\/ol>\n<p>  &nbsp;<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e VK SDK<\/h3>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 VK SDK \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c\u00a0<a href=\"https:\/\/vk.com\/dev\/standalone\">Standalone<\/a>-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u00a0<b><a href=\"https:\/\/vk.com\/editapp?act=create\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/a><\/b>. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c <b>ID \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/b>\u00a0\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0435 \u00abApp Bundle \u0434\u043b\u044f iOS\u00bb.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 VK App, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c URL-\u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:  <\/p>\n<ul>\n<li>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u0434\u0435\u043b \u00abInfo\u00bb.<\/li>\n<li>\u0412 \u0441\u0435\u043a\u0446\u0438\u0438 \u00abURL Types\u00bb \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 +.<\/li>\n<li>\u0412\u0432\u0435\u0434\u0438\u0442\u0435 vk+<b>APP_ID<\/b>\u00a0(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440,\u00a0<i>vk1234567<\/i>) \u0432 \u043f\u043e\u043b\u044f \u00abIndentifier\u00bb \u0438 \u00abURL Schemes\u00bb.<\/li>\n<\/ul>\n<p>  &nbsp;  <\/p>\n<h3>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 SDK<\/h3>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c SDK \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043c  <\/p>\n<blockquote><p>[VKSdk initialize:delegate andAppId:APP_ID];<\/p><\/blockquote>\n<p>  \u0414\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434:  <\/p>\n<blockquote><p>[VKSdk authorize:scope];<\/p><\/blockquote>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430 \u0443 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043c\u0435\u0442\u043e\u0434  <\/p>\n<blockquote><p>-(void) vkSdkDidReceiveNewToken:(VKAccessToken*) newToken;<\/p><\/blockquote>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u043b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e)  <\/p>\n<blockquote><p>-(void) vkSdkUserDeniedAccess:(VKError*) authorizationError;<\/p><\/blockquote>\n<p>  &nbsp;  <\/p>\n<h3>UIActivity \u0434\u043b\u044f \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/h3>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Apple, \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a UIActivity:<\/p>\n<pre><code class=\"objectivec\">#import &lt;UIKit\/UIKit.h&gt;   @interface VKontakteActivity : UIActivity   - (id)initWithParent:(UIViewController*)parent;   @end <\/code><\/pre>\n<p>  \u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 <strong>parent<\/strong> \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u043f\u0447\u0438, \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0438 \u043f\u0440.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 UIActivity (\u0442\u0438\u043f, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438 \u0438\u043a\u043e\u043d\u043a\u0443)  <\/p>\n<pre><code class=\"objectivec\">- (NSString *)activityType {     return @&quot;VKActivityTypeVKontakte&quot;; }   - (NSString *)activityTitle {     return @&quot;\u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435&quot;; }   - (UIImage *)activityImage {     return [UIImage imageNamed:@&quot;vk_activity&quot;]; } <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043b\u0438 \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0441 \u0448\u0430\u0440\u0438\u043d\u0433 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0435\u043c\u0443\u00a0activityItems:  <\/p>\n<pre><code class=\"objectivec\">- (BOOL)canPerformWithActivityItems:(NSArray *)activityItems {     for (UIActivityItemProvider *item in activityItems) {         if ([item isKindOfClass:[UIImage class]]) {             return YES;         }         else if ([item isKindOfClass:[NSString class]])         {             return YES;         }     }     return NO; } <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043d\u0430\u043c\u0438 activityItems:  <\/p>\n<pre><code class=\"objectivec\">- (void)prepareWithActivityItems:(NSArray *)activityItems {     for (id item in activityItems) {         if ([item isKindOfClass:[NSString class]]) {             self.string = item;         }         else if([item isKindOfClass:[UIImage class]]) {             self.image = item;         }         else if([item isKindOfClass:[NSURL class]]) {             self.URL = item;         }     } } <\/code><\/pre>\n<p>  \u041d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043d\u0430\u0448\u0435\u0433\u043e UIActivity\u00a0\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d \u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c:  <\/p>\n<pre><code class=\"objectivec\">- (void)performActivity{     [VKSdk initializeWithDelegate:self andAppId:@&quot;3974615&quot;];     if ([VKSdk wakeUpSession])     {         [self postToWall];     }     else{         [VKSdk authorize:@[VK_PER_WALL, VK_PER_PHOTOS]];     } }  <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u043c \u043f\u043e\u0441\u0442.  <\/p>\n<pre><code class=\"objectivec\">-(void)postToWall{     [self begin];     if (self.image) {         [self uploadPhoto];     }     else{         [self uploadText];     } }   \/\/\u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u0441\u0442\u0435\u043d\u0435 -(void)uploadText{ \t [self postParameters:@{ VK_API_FRIENDS_ONLY : @(0),                             VK_API_OWNER_ID : [VKSdk getAccessToken].userId,                             VK_API_MESSAGE : self.string}]; }   \/\/\u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u043e\u0441\u0442\u0430 \u043d\u0430 \u0441\u0442\u0435\u043d\u0435 -(void)postParameters:(NSDictionary *)params{     VKRequest *post = [[VKApi wall] post:params];     [post executeWithResultBlock: ^(VKResponse *response) {         NSNumber * postId = response.json[@&quot;post_id&quot;];         [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@&quot;http:\/\/vk.com\/wall%@_%@&quot;, [VKSdk getAccessToken].userId, postId]]];         [self end];     } errorBlock: ^(NSError *error) {         NSLog(@&quot;Error: %@&quot;, error);         [self end];     }]; } <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u0442\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u00a0\u0435\u0451 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.  <\/p>\n<pre><code class=\"objectivec\">- (void)uploadPhoto {     NSString *userId = [VKSdk getAccessToken].userId;     \/\/\u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0444\u043e\u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440     VKRequest *request = [VKApi uploadWallPhotoRequest:self.image parameters:[VKImageParameters jpegImageWithQuality:1.f] userId:[userId integerValue] groupId:0]; \t[request executeWithResultBlock: ^(VKResponse *response) { \t    VKPhoto *photoInfo = [(VKPhotoArray*)response.parsedModel objectAtIndex:0]; \t    NSString *photoAttachment = [NSString stringWithFormat:@&quot;photo%@_%@&quot;, photoInfo.owner_id, photoInfo.id];        \t\/\/\u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u0441\u0442\u0435\u043d\u0435 \t[self postParameters:@{ VK_API_ATTACHMENTS : photoAttachment,                                 VK_API_FRIENDS_ONLY : @(0),                                 VK_API_OWNER_ID : userId,                                 VK_API_MESSAGE : [NSString stringWithFormat:@&quot;%@ %@&quot;,self.string, [self.URL absoluteString]]}];     } errorBlock: ^(NSError *error) { \t    NSLog(@&quot;Error: %@&quot;, error);         [self end]; \t}]; }  <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0444\u043e\u0442\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0VKontakteActivity:  <\/p>\n<pre><code class=\"objectivec\">  NSArray *items = @[[UIImage imageNamed:@&quot;example.jpg&quot;], @&quot;\u0425\u043e\u043b\u043e\u0434\u043d\u0430\u044f \u0432\u043e\u0439\u043d\u0430?&quot; , [NSURL URLWithString:@&quot;https:\/\/www.youtube.com\/watch?v=S59fDUZIuKY&quot;]];     VKontakteActivity *vkontakteActivity = [[VKontakteActivity alloc] initWithParent:self];          UIActivityViewController *activityViewController = [[UIActivityViewController alloc]                                                         initWithActivityItems:items                                                         applicationActivities:@[vkontakteActivity]];          [self presentViewController:activityViewController animated:YES completion:nil];  <\/code><\/pre>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c <strong> <a href=\"https:\/\/github.com\/denivip\/VKActivity\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/strong>    \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\/214637\/\"> http:\/\/habrahabr.ru\/post\/214637\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u0434 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 <a href=\"https:\/\/itunes.apple.com\/ru\/app\/photosuerte-zavodi-foto-druzej\/id710500285?mt=8&amp;amp;at=11lpud&amp;amp;ct=photosuerte_uiactivity_habr\">\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/a>\u00a0\u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044e \u0444\u043e\u0442\u043e \u0432 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438\u00a0\u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/uikit\/reference\/UIActivityViewController_Class\/Reference\/Reference.html\">UIActivityViewController<\/a>.   <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/4f1\/498\/b82\/4f1498b82c2db1f88585e3a7130d8fac.jpg\" alt=\"image\"\/><\/div>\n<p>  \u041f\u043e\u0438\u0441\u043a \u0432 \u0441\u0435\u0442\u0438 \u0434\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:  <\/p>\n<ol>\n<li><a href=\"https:\/\/github.com\/shu223\/UIActivityCollection\">\u0413\u043e\u0442\u043e\u0432\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435\u0442<\/a><\/li>\n<li>\u0415\u0441\u0442\u044c <a href=\"https:\/\/vk.com\/dev\/ios_sdk\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 sdk \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/a>: \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438, \u043d\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0447\u0435\u0440\u0435\u0437\u00a0<a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/uikit\/reference\/UIActivityViewController_Class\/Reference\/Reference.html\">UIActivityViewController<\/a><\/li>\n<li>\u0415\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f Apple \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u043e\u0433\u043e\u00a0<a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/uikit\/reference\/UIActivity_Class\/Reference\/Reference.html\">UIActivity<\/a><\/li>\n<\/ol>\n<p>  &nbsp;  <\/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-214637","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/214637","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=214637"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/214637\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=214637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=214637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=214637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}