【问题标题】:iOS Twitter APIiOS 推特 API
【发布时间】:2013-05-01 04:36:50
【问题描述】:

我已经在此处查看了其他一些帖子,但它们似乎都没有工作。所以,我的问题是使用 iOS 内置的 Twitter API,如何将标签中的文本包含到初始 Twitter 文本中。

我有:

[tweetSheet setInitialText:@"I have just generated the following numbers from The Lottery App: %@", label1.text];

有人可以帮忙吗? - 提前致谢

【问题讨论】:

  • Xcode 中没有内置 Twitter API。
  • Here 是一篇关于将 Twitter API 与 iOS 集成的好帖子。
  • 是的 - 这确实是一个很棒的拒绝访问屏幕。

标签: ios twitter


【解决方案1】:

简单地说:

NSString *initialText = [NSString stringWithFormat:@"I have just generated the following numbers from The Lottery App:%@",label1.text]
[tweetSheet setInitialText:initialText];

【讨论】:

    【解决方案2】:
    [tweetSheet setInitialText:[NSString stringWithFormat:@"I have just generated the following numbers from The Lottery App: %@", label1.text]];
    

    【讨论】:

      猜你喜欢
      • 2013-07-13
      • 2021-01-22
      • 1970-01-01
      • 2014-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多