slcomposeviewcontroller

How to post on twitter by hiding SLComposeViewController *tweetSheettweet instance

五迷三道 提交于 2019-11-27 22:36:36
My app needs to support iOS 5. I have my custom UI where user can enter tweet message and when he presses post button, It should post message twitter. I have already written code for posting via SLComposeViewController *tweetSheet instance but in this case i cannot directly press send button presented by tweetSheet without presenting it by [self presentViewController:tweetSheet animated:YES completion:nil]; Is it possible to bypass this presentation and set text message and post to twitter via my custom ui which has post button ?? if ([SLComposeViewController isAvailableForServiceType

About “SLComposeViewController” in iOS 11 beta

一笑奈何 提交于 2019-11-27 19:19:09
问题 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? 回答1: 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

SLComposeViewController setInitialText not showing up in View

拟墨画扇 提交于 2019-11-27 17:51:48
问题 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

How to post on twitter by hiding SLComposeViewController *tweetSheettweet instance

旧巷老猫 提交于 2019-11-27 04:35:27
问题 My app needs to support iOS 5. I have my custom UI where user can enter tweet message and when he presses post button, It should post message twitter. I have already written code for posting via SLComposeViewController *tweetSheet instance but in this case i cannot directly press send button presented by tweetSheet without presenting it by [self presentViewController:tweetSheet animated:YES completion:nil]; Is it possible to bypass this presentation and set text message and post to twitter

Prevent users from modifying part of the text in SLComposeViewController

本小妞迷上赌 提交于 2019-11-27 04:07:46
问题 Right now, our code is set to grab the text from the UITextField as setInitialText for Facebook/Twitter posts. What we want to do is: add an additional permanent message or URL to the Facebook/Twitter posts. How can we do this? Here's our current code: [slComposeThirdViewController setInitialText:[[self QText]text]]; [self presentViewController:slComposeThirdViewController animated:YES completion:nil]; 回答1: It's a little involved, so bear with me here... and this only works for

Tutorial for SLComposeViewController sharing [closed]

与世无争的帅哥 提交于 2019-11-26 06:13:28
问题 What are the steps I need to follow to use iOS 6\'s new SLComposeViewController to post to Facebook, Twitter or Sina Weibo? 回答1: For details on this framework please see Apple's Social Framework Class Reference Additional tutorials: http://soulwithmobiletechnology.blogspot.com/2012/07/tutorial-how-to-use-inbuilt.html http://www.mobile.safilsunny.com/iphone/integrating-facebook-ios/ https://rudeboy-quickies.blogspot.com/2012/06/steps-to-integrate-facebook-in-ios6.html For this example, we will