Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 Xcode 和 Mac 开发很陌生。我正在尝试使菜单项可以通过键盘快捷键激活(例如 CMD+S 是许多程序中保存的快捷键。)
我怎样才能做到这一点?
PS:我还希望这个快捷方式出现在菜单项中。我假设这是在编程中自动完成的,但如果不是,我也希望得到帮助。
Just double-click on the keyboard shortcut in the .xib and type whatever key combination you want. Here's an example of an empty project that I changed the "save" key shortcut to CMD-F: