简体   繁体   English

iOS 5 Twitter API在模拟器和实际iOS设备中的行为有所不同

[英]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.

相关问题 应用在iOS设备和iOS模拟器上的行为有所不同 - App behaves differently on iOS device vs iOS simulator iOS本地化:模拟器的行为与设备不同 - iOS Localization: simulator behaves differently than device MFMailComposeViewController 在 iOS 13 模拟器和设备中的行为不同 - MFMailComposeViewController behaves differently in iOS 13 simulator and device 如何让Appium定位到真正的iOS设备与模拟器设备 - How to get Appium to target a real iOS device vs a simulator device 在iOS 7中,模拟器和实际设备中的文本字段动画不会隐藏在keboard下方,其行为有所不同 - Animation of textfields for not to hide underneth the keboard, behaves differently in simulator and actual device in IOS 7 OpenGL ES深度缓冲区渲染(iOS模拟器VS真实设备) - OpenGL ES Depth Buffer rendering (iOS simulator VS real device) heightForRowAtIndexPath 在模拟器和设备中的行为不同 - heightForRowAtIndexPath behaves differently in simulator and device 检测iOS模拟器与iOS设备 - Detect iOS Simulator vs. iOS Device iOS模拟器崩溃而真实设备没有崩溃 - iOS Simulator crashes while real device does not Firebase与模拟器连接,但未在真实设备iOS中连接 - Firebase connecting with simulator but not in real device iOS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM