菜鸟教程小白 发表于 2022-12-12 20:51:00

ios - iOS模拟器中的命令键


                                            <p><p>iOS 模拟器快捷键经常使用命令键。我注意到在模拟器中运行时,在我的程序中 try catchcommand-z、command-y 等不起作用。我认为原因是系统将它们解释为模拟器命令,而不是传递给我的 iOS 应用程序的按键。</p>

<p>有没有办法改变这种行为?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>当您第一次在模拟器中使用 <strong>command-z</strong>、<strong>command-y</strong> 等时,您可以将其粘贴到模拟器缓冲区。要粘贴到您的应用,您需要第二次添加 <strong>Shift 键</strong> <strong>command-z+shift</strong>、<strong>command-y+shift</strong></p>

<ol>
<li>command-c(在mac中复制任意字符串)</li>
<li>command-v(粘贴到模拟器缓冲区)</li>
<li>command-v-shift(粘贴到您的应用)</li>
</ol>

<p>我不确定这种行为是否会发生变化。尝试在设置中找到相同的快捷方式(Xcode 和 Mac)</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - iOS模拟器中的命令键,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/37992994/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/37992994/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - iOS模拟器中的命令键