简体   繁体   English

如何将我的mac剪贴板中的东西粘贴到iPhone模拟器中?

[英]How can I paste stuff from my mac's clipboard to the iPhone simulator?

I'm having a really hard time taking screenshots. 我很难截取屏幕截图。

My app has a view controller that lets the user enter some information with a few UITextField s. 我的应用程序有一个视图控制器,允许用户输入一些UITextField的信息。 I am now taking screenshots of this view controller so that I can upload them to iTunes Connect. 我现在正在截取此视图控制器的屏幕截图,以便我可以将它们上传到iTunes Connect。

Obviously, I can't just leave the text fields blank and take a screenshot, because that tells the user little information about how he/she is supposed to do. 显然,我不能将文本字段留空并截取屏幕截图,因为它告诉用户关于他/她应该如何做的很少的信息。

Therefore, I need to enter some dummy texts. 因此,我需要输入一些虚拟文本。 But they cannot be 但他们不可能

njndsfiusbfiksbksug

because it makes no sense and does not show the user what that text field is for. 因为它没有任何意义,也没有向用户显示该文本字段的用途。

So I have to enter some really long texts in there in order to show the user a good example of how to use the app. 所以我必须在那里输入一些非常长的文本,以向用户展示如何使用该应用程序的一个很好的例子。

Now here comes the problem, I have to take screenshots of 5 device sizes and 3 localizations. 现在问题来了,我必须截取5个设备大小和3个本地化的截图。 This means that I will spend a lot of time entering the same old text into the iPhone over and over. 这意味着我将花费大量时间一遍又一遍地将相同的旧文本输入iPhone。

Then I thought that I can type the dummy texts into the Stickies app on my Mac, and copy/paste that text from my Mac to the iPhone simulator. 然后我想我可以在我的Mac上的Stickies应用程序中键入虚拟文本,然后将该文本从我的Mac复制/粘贴到iPhone模拟器。 So I pressed + C in the Stickies app, and + V in the iPhone, but nothing happens at all. 所以我在Stickies应用程序中按了 + C ,在iPhone中按了 + V ,但没有任何反应。

I think this is because the iPhone has its own clipboard. 我认为这是因为iPhone有自己的剪贴板。

How can I copy text from my Mac to the iPhone simulator? 如何将文本从Mac复制到iPhone模拟器?

Note: when the user is using the app, he/she can choose not to enter long texts. 注意:当用户使用该应用程序时,他/她可以选择不输入长文本。 I'm just doing this to show a good example to the user. 我这样做是为了向用户展示一个很好的例子。 So don't tell me my app sucks. 所以不要告诉我我的应用很糟糕。

您必须在模拟器中使用 + V ,然后单击一个字段并点击Paste

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Mac 上的 iPhone 模拟器上运行 ElectronJS 应用程序? - How can I run ElectronJS app on iPhone Simulator on a Mac? 如何将 IPA 文件从我的 iPhone 提取到 Mac? - How can I extract IPA file from my iPhone to Mac? 我怎么知道我的iPhone模拟器的IP地址? - How can I know the IP address of my iPhone simulator? 如何以编程方式确定我的应用程序是否在 iphone 模拟器中运行? - How can I programmatically determine if my app is running in the iphone simulator? 如何从模拟器录制iPhone应用程序的视频? - How do I record a video of my iPhone app from the simulator? 如何触发我的iphone应用程序从我的mac应用程序启动 - How can i trigger my iphone application to launch from my mac app 在 iPhone 模拟器中哪里可以粘贴图像? - Where can you paste images in the iPhone simulator? 如何在组织器(如iPhone设备)上显示iPhone模拟器的控制台? - How can I show iPhone simulator's console on Organizer like iPhone device? 从剪贴板粘贴不适用于 iOS 模拟器上的 React Native - Paste from clipboard not working with React Native on iOS simulator 从剪贴板复制粘贴在 iOS 模拟器中不再起作用 - Copy paste from clipboard not working anymore in iOS Simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM