slcomposeviewcontroller

SLComposeViewController appears slowly

≡放荡痞女 提交于 2019-12-01 08:51:52
SLComposeViewController takes 3-4 seconds to appear after presenting it. But presentViewController:(UIViewController *) animated:(BOOL) completion:^(void)completion methods completion block gets called immediately. So even if I use a loading indicator it disappears in a blink. The related code is below. Btw I tried dispatch_async it didn't work. How can I speed up the process do you have any ideas? SLComposeViewController *shareView = [SLComposeViewController composeViewControllerForServiceType: SLServiceTypeFacebook]; [shareView setTitle:@"Title"]; [shareView setInitialText:@"Description"];

SLComposeViewController appears slowly

瘦欲@ 提交于 2019-12-01 07:12:24
问题 SLComposeViewController takes 3-4 seconds to appear after presenting it. But presentViewController:(UIViewController *) animated:(BOOL) completion:^(void)completion methods completion block gets called immediately. So even if I use a loading indicator it disappears in a blink. The related code is below. Btw I tried dispatch_async it didn't work. How can I speed up the process do you have any ideas? SLComposeViewController *shareView = [SLComposeViewController

IOS7 - SLComposeViewController - Error posting to Twitter - cannot send tweet - connection failed

怎甘沉沦 提交于 2019-11-30 20:53:50
I'm trying to implement a twitter post using IOS7 SLComposeViewController and I get the following error - The Tweet "blah blah" cannot be sent because the connection to twitter failed. I am including image and URL in my tweet - if that makes any difference.. code below - SLComposeViewController *composeController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [composeController setInitialText:@"i ran with 18 chickens under my armpits for 18 hours"]; [composeController addImage:[UIImage imageNamed:@"zoeLrg.png"]]; [composeController addURL: [NSURL

LaunchServices: invalidationHandler called - iOS 8 share sheet

空扰寡人 提交于 2019-11-30 07:47:53
问题 Seeing this error message in the logs, though not consistently, around the time that I use SLComposeViewController to open a Twitter or Facebook share sheet. I am not using any new iOS 8 API, just testing existing code on iOS 8. I see others have had this problem and even seen crashes when using other modal view controllers from the Cocoa Touch SDK. LaunchServices: invalidationHandler called Are there new precautions to take with SLComposeViewController and UIActivityViewController in iOS 8?

IOS7 - SLComposeViewController - Error posting to Twitter - cannot send tweet - connection failed

前提是你 提交于 2019-11-30 05:44:41
问题 I'm trying to implement a twitter post using IOS7 SLComposeViewController and I get the following error - The Tweet "blah blah" cannot be sent because the connection to twitter failed. I am including image and URL in my tweet - if that makes any difference.. code below - SLComposeViewController *composeController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [composeController setInitialText:@"i ran with 18 chickens under my armpits for 18 hours"];

How to make the presentViewController with SLComposeViewController faster?

落花浮王杯 提交于 2019-11-29 11:31:44
I am opening the Twitter compose view on my app, but the screen takes too long to be displayed! I started using the following code when the user taps the twitter button: if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { SLComposeViewController *tweet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [tweet setInitialText:@"initial text "]; [self presentViewController:tweet animated:YES completion:^ { }]; } But it takes between 5 and 8 seconds to show the screen! For me it's too long, I saw apps that goes instantly. It is not an

LaunchServices: invalidationHandler called - iOS 8 share sheet

吃可爱长大的小学妹 提交于 2019-11-29 05:28:14
Seeing this error message in the logs, though not consistently, around the time that I use SLComposeViewController to open a Twitter or Facebook share sheet. I am not using any new iOS 8 API, just testing existing code on iOS 8. I see others have had this problem and even seen crashes when using other modal view controllers from the Cocoa Touch SDK. LaunchServices: invalidationHandler called Are there new precautions to take with SLComposeViewController and UIActivityViewController in iOS 8? Something else to consider? Ram G. Add this code after you present your activity view controller: if (

SLComposeViewController setInitialText not showing up in View

风格不统一 提交于 2019-11-29 03:55:29
I'm trying to use the SLComposeViewController to share a link in my iOS App. SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [controller setInitialText:@"Here's the link I promised:"]; [controller addURL:[NSURL URLWithString:@"http://www.url.com"]]; [self presentViewController:controller animated:YES completion:nil]; When the controller presents, there is no text in the entry box. You can add text and send it fine (the URL shows up correctly in the Post as well). I just installed FacebookSDK 4.01 and it's a iOS 7/8 App.

About “SLComposeViewController” in iOS 11 beta

纵饮孤独 提交于 2019-11-28 10:51:07
In my project, I always use SLComposeViewController to share contents with third-party apps, but now, when I update my iPhone to iOS 11 beta, this no longer works. The SLComposeViewControllerCompletionHandler always callback SLComposeViewControllerResultCancelled . Why is this? I was having problems with regard to the SLComposer in iOS 11. But I just removed the line that checks and apparently the own SDK makes the validacoes to me internally. Remove this line serves for any SLServiceType : if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { So, develop your logic.

How to make the presentViewController with SLComposeViewController faster?

China☆狼群 提交于 2019-11-28 04:39:59
问题 I am opening the Twitter compose view on my app, but the screen takes too long to be displayed! I started using the following code when the user taps the twitter button: if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { SLComposeViewController *tweet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [tweet setInitialText:@"initial text "]; [self presentViewController:tweet animated:YES completion:^ { }]; } But it takes between 5