Prevent users from modifying part of the text in SLComposeViewController

后端 未结 4 2055
借酒劲吻你
借酒劲吻你 2020-12-04 03:11

Right now, our code is set to grab the text from the UITextField as setInitialText for Facebook/Twitter posts.

What we want to do i

4条回答
  •  半阙折子戏
    2020-12-04 03:59

    If you want to append the text with URL, just use the addURL: method. It won't display any text in the SLComposeViewController's view. But will add the URL at the end after publishing users tweet.

    SLComposeViewController *slComposeThirdViewController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
    [slComposeThirdViewController setInitialText:@"initial Text"];
    [slComposeThirdViewController addURL:[NSURL URLWithString:@"http://stackoverflow.com/"]];
    

提交回复
热议问题