coryalder / dmactivityinstagram Goto Github PK
View Code? Open in Web Editor NEWInstagram sharing, iOS 6 style.
License: MIT License
Instagram sharing, iOS 6 style.
License: MIT License
Hello,
I installed your library using pods. After opening activity controller I don't see instagram icon and can't find instagram.png and other images in my project(
First of all I was really happy to find this project, thanks for sharing it.
I'm trying to implement it, but when I tap the instragram button, nothing happens. I did a bit of debugging and found that in DMActivityInstragram.m, the last (uncommented) line in performActivity seems to be the problem.
There is a compiler warning on this line, too. But basically "self.presentInView" is nil for me, so that line essentially does nothing:
if (![self.documentController presentOpenInMenuFromBarButtonItem:self.presentInView animated:YES]) NSLog(@"couldn't present document interaction controller");
It doesn't return NO, but self.presentInView is nil. It looks like the only place that property is assigned is if an image needed to be resized. In my app I am working with images that are typically square already. So perhaps the bug is that if resizing isn't needed, it doesn't work?
Note that presentInView is declared as UIView, but the presentOpenInMenuFromBarButtonItem:animated: wants a UIBarButtonItem.
My apologies if I'm wrong (I'm still new to iOS development), but I cannot find where you remove the image you saved to the device's temporary folder.
According to the Apple documentation you should always remove files from the temp/ directory when you're finished with them.
I would assume this could/should be done in the activityDidFinish: method.
Hi, I've looked through your script and don't seem to find there's a script for sharing to Weibo, however it's showing up in my simulator (My real iPhone hasn't been upgraded to iOS 6 yet so I can't test it)
Screenshot: http://postimage.org/image/izcjfds33/
I wonder is it because I'm located in Hong Kong that is why its showing up?
I've just added DMActivityInstagram to an app I'm working on, and things seem to be working okay until I try to present the UIDocumentInteractionController. This is the window that opens when I test on the device—with all these icons instead of just the one for Instagram (even though I've made sure that the extension is .igo and the UIT is com.instagram.exclusivegram), and no picture for Instagram, and when I press in the Instagram area, instead of Instagram opening, nothing happens. (Instagram is installed on the device.)
I'm at [email protected] if you need/want more information.
I got a crash on iOS 7 on this line, when coming back from Instagram (double-tap home and tap original app):
[super activityDidFinish:completed];
*** Assertion failure in -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:], /SourceCache/UIKit/UIKit-2935.138/UIWindowController.m:223
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempting to begin a modal transition from <DMResizerViewController: 0x14d5752d0> to <UITabBarController: 0x14d610360> while a transition is already in progress. Wait for viewDidAppear/viewDidDisappear to know the current transition has completed'
iOS 8 seems fine with this.
I solved the issue by waiting a bit in documentInteractionController didEndSendingToApplication
- (void)documentInteractionController:(UIDocumentInteractionController *)controller didEndSendingToApplication:(NSString *)application {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self activityDidFinish:YES];
});
}
Any idea iOS9 Instagram option not displaying.
Should be called instagram@2xiPad.png[email protected] which won't work (e.g. will load the normal resolution resource on a retina iPad)
Is currently called instagram
Thanks for this great library. Is there any way to skip the steps for resizing/rotating the image? My project already does all the checking for making sure the image is square and large enough.
Thanks again,
Bill
I would like to suppress activityType of Instagram from showing in the share sheet. For other activity types, we can use activityController.excludedActivityTypes. Is there any mechanism to achieve a similar result?
Ironically, this control is especially designed for sharing on Instagram, but only sometimes I want to suppress this feature without resorting to the original activity view controller.
Thanks for this awesome library!. Is there a way or ideas of how to use this library with a short video ?
Any idea why InstagramCaption not displaying in iOS 7.0 ?
Below is my sample code.
DMActivityInstagram *instagramActivity = [[DMActivityInstagram alloc] init];
instagramActivity.includeURL = YES;
instagramActivity.control = self;
NSString *shareText = @"CatPaint #catpaint";
NSURL *shareURL = [NSURL URLWithString:[@"http://catpaint.info"];
NSArray *activityItems = @[shareImage, shareText, shareURL];
NSArray *applicationActivities = @[instagramActivity];
NSArray *excludeActivities = @[];
UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:applicationActivities];
activityController.excludedActivityTypes = excludeActivities;
But it is working fine with other social media like FB & Twitter.
Thanks in advance.
Hi did all what you said (and exactly as in your demo app)
: http://f.cl.ly/items/3L0A2D130t3y2v3v291i/Screen%20Shot%202013-03-27%20at%2011.32.41.png
All imported all the .h and .m (and the images) and at the top of my viewController.m I wrote "#import "DMActivityInstagram.h"
My goal was to add Instagram sharing to the UIActivityViewController in order to add an extra sharing feature next to mail, Twitter, Facebook etc.
I ran the code and the Instagram option does not appear:
http://f.cl.ly/items/0B2C2h0l2Q3c1H061Y38/iOS%20Simulator%20Screen%20shot%2027%20Mar%202013%2011.31.57.png
The UIActivityViewController is like it was before adding the code for Instagram sharing.
So I ran your sample app to see if it appears or not, and nope it doesn't appear:
http://f.cl.ly/items/0L3j0P0V0R0h1q1U0q2T/iOS%20Simulator%20Screen%20shot%2027%20Mar%202013%2011.37.50.png
Do you know why?
Regards,
Sacha
It seems that the Resizer View Controller can't be customised in code and its functionality is tightly coupled to its view.
I'm wondering if there's any way to achieve this or it is just the way it's supposed to be.
I have a few ideas that could help (I just forked the project) but would like to know your opinion in advance.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.