使字符串的一部分不可编辑(快速)?

时间:2016-06-25 19:01:16

标签: swift facebook slcomposeviewcontroller

您好我的游戏有一个帖子到Facebook按钮。我希望用户能够发布他们的高分,但无法更改它,但能够在他们的帖子中输入消息。我该怎么做呢?我到目前为止的代码是:

    @IBAction func ShareToFacebook(sender: AnyObject) {
    var SharetoFacebook: SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook)
    var posting = finalTime.text
    SharetoFacebook.setInitialText("New Highscore ohhhhh yea :) \n \n " + posting!)
    SharetoFacebook.addImage(UIImage(named: "upload.png"))
    self.presentViewController(SharetoFacebook, animated: true, completion: nil)

基本上我不希望他们能够编辑"发布"

0 个答案:

没有答案