iOS 5 Twitter API 在模拟器与真实 iOS 设备中的行为有所不同
我在模拟器和 iPad 上运行应用程序时遇到了这种行为:
使用 TWTweetComposeViewController 发送带有图片附件的推文,在模拟器上我可以发送非常大的图片文件(> 5MB)。但当我在 iPad 上运行相同的应用程序时,相同的图片文件没有经过,只有短信经过。较小的图片文件,例如200k,没有问题。我知道 5MB 对于一条推文来说已经很大了。但我只是想知道这是某种类型的错误吗?
I encountered this behavior when running an app on the simulator and on the iPad:
Sending tweet with picture attachment using TWTweetComposeViewController, on the Simulator I can send a very large picture file (>5MB). But when I run the same app on the iPad, the same picture file did not go through only the text message did. A smaller picture files, 200k for example, have no problem. I know 5MB is large for a tweet. But I just want to find out is this some type of bug?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该问题可能是由于设备和模拟器之间的差异造成的。请通过以下链接重新检查。我建议您阅读以下我在网上找到的最好的教程:
http://iosdevelopertips.com/core-services/ios-5-twitter-framework-part-1.html
另外,这个也很棒,有很多细节和简化的解释来自雷.我也关注他的博客。 http://www.raywenderlich.com/5519/beginning-twitter- in-ios-5
The problem might be due to discrepancy between device and simulator . Please re-check it with the below links. I would suggest you to go through the following tutorial which I found best on web once:
http://iosdevelopertips.com/core-services/ios-5-twitter-framework-part-1.html
Plus, this one is also awesome with a lot of detail and simplified explanation from Ray. I follow his blog for same. http://www.raywenderlich.com/5519/beginning-twitter-in-ios-5