Prevent users from modifying part of the text in SLComposeViewController

后端 未结 4 2057
借酒劲吻你
借酒劲吻你 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 04:11

    How about capturing the user entered text from the UITextField and then constructing a final string which appends the permanent message you want from it?

    UITextField *textField;
    NSString *enteredText = [textField text];
    NSString *finalPost = [NSString stringWithFormat:@"%@ Your permanent text/URL", enteredText];
    

    Now post the "finalPost" string to Facebook or Twitter.

提交回复
热议问题