ios - Sharing video to instagram with UIDocumentInteractionController -


how share .mp4 video file instagram? can share images this:

nsstring* filename = [nsstring stringwithformat:@"testimage.igo"];         nsstring* savepath = [imagespath stringbyappendingpathcomponent:filename];         [uiimagepngrepresentation(myimage) writetofile:savepath atomically:yes];          nsurl *instagramurl = [nsurl urlwithstring:@"instagram://app"];          if ([[uiapplication sharedapplication] canopenurl:instagramurl])         {             self.documentinteractioncontroller = [uidocumentinteractioncontroller interactioncontrollerwithurl:[nsurl fileurlwithpath:savepath]];             self.documentinteractioncontroller.uti = @"com.instagram.exclusivegram";             self.documentinteractioncontroller.delegate = self;             [self.documentinteractioncontroller presentopeninmenufromrect:cgrectzero inview:self.view animated:yes];         } 

but works images. tried renaming video testvideo.igo results in blank video. if instagram requires files have .igo extension how post video file?


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -