[英]iOS 5 Twitter API behaves differently in the Simulator vs real iOS device
I encountered this behavior when running an app on the simulator and on the iPad: 在模拟器和iPad上运行应用程序时,我遇到了以下问题:
Sending tweet with picture attachment using TWTweetComposeViewController, on the Simulator I can send a very large picture file (>5MB). 使用TWTweetComposeViewController发送带有图片附件的tweet,在模拟器上,我可以发送非常大的图片文件(> 5MB)。 But when I run the same app on the iPad, the same picture file did not go through only the text message did. 但是,当我在iPad上运行同一个应用程序时,同一个图片文件并没有通过短信发送。 A smaller picture files, 200k for example, have no problem. 较小的图片文件(例如200k)没有问题。 I know 5MB is large for a tweet. 我知道5MB的微博很大。 But I just want to find out is this some type of bug? 但是我只想找出这是某种类型的错误?
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 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. 另外,这一点也很棒,Ray提供了很多细节和简化的说明。 I follow his blog for same. 我也跟随他的博客。 http://www.raywenderlich.com/5519/beginning-twitter-in-ios-5 http://www.raywenderlich.com/5519/beginning-twitter-in-ios-5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.