Is there a way of replying to a particular tweet via SLComposerViewController

后端 未结 2 964
走了就别回头了
走了就别回头了 2020-12-19 12:06

Is is possible to reply to a tweet using SLComposerViewController? Has anyone done it before?

2条回答
  •  既然无缘
    2020-12-19 12:34

    Since SLComposeViewController inherits from View Contoller, we need to strip the SLComposeViewcontroller to it UITextView property and fetch its content. Then we pass the gathered info to the Twitter API along with the "in_reply_to_status_id". Easy breezy!! Lemme know if you need help with codes! Spoiler I havent implemented it yet.. but since i was able to retrieve the user input from SLComposerViewController, I assume rest of it will be a piece of cake

提交回复
热议问题