social-framework

SLServiceTypeFacebook setInitialText is not working

天大地大妈咪最大 提交于 2019-11-27 18:42:15
I am trying to share a text on Facebook with SLServiceTypeFacebook on IOS 8.3. But the popup text box displayed empty. I want it to be displayed with text in it. Below you can see the code I use for that. if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [controller setInitialText:@"First post from my iPhone app"]; [self presentViewController:controller animated:YES completion:Nil]; } nnarayann It seems to be a problem having installed the

How to display the default iOS 6 share action sheet with available share options?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 05:53:36
Some apps show a default action sheet in iOS 6 with sharing options. Social Framework only has two classes, one for composing and one for request. What I found though is about composing for a particular service with SLComposeViewController and before showing this I must query by hand if the service is available. And then I also have to create my own action sheet with own icons. How do those apps show this default share options action sheet in iOS 6? Or are they using an open source framework? Mick MacCallum The UIActivityViewController stated in the other answer makes this trivial. All you

SLServiceTypeFacebook setInitialText is not working

让人想犯罪 __ 提交于 2019-11-27 04:18:28
问题 I am trying to share a text on Facebook with SLServiceTypeFacebook on IOS 8.3. But the popup text box displayed empty. I want it to be displayed with text in it. Below you can see the code I use for that. if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [controller setInitialText:@"First post from my iPhone app"]; [self presentViewController

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

How to display the default iOS 6 share action sheet with available share options?

…衆ロ難τιáo~ 提交于 2019-11-26 11:46:26
问题 Some apps show a default action sheet in iOS 6 with sharing options. Social Framework only has two classes, one for composing and one for request. What I found though is about composing for a particular service with SLComposeViewController and before showing this I must query by hand if the service is available. And then I also have to create my own action sheet with own icons. How do those apps show this default share options action sheet in iOS 6? Or are they using an open source framework?

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