xcode 快捷键

CMD + SHIFT + {   - Select Next Tab

CMD + SHIFT + }   - Select Previous Tab

toggle between .h and .m files in xcode5     CTRL+CMD+up arrow

在xcode的所有窗口循环切换:       CMD+`

显示代码中的函数列表:               CTRL+6

show Project Navigator:          Command + 1

Show/Hide Navigator Panel: Command + 0

Show/Hide Utilities Panel: Command + Option + 0

Open file in Assistant Editor:    Option + Left-click on file in Project Navigator

Open file Quickly: Command + Shift + O                    (O is char)

Find Navigator (ie. Search): Command + Shift + F

Build the app: Command + B

Run the app: Command + R

Clean the project: Command + Shift + K

Documentation and Reference: Command + Shift + 0 (Zero)

Quick Help: Option + Left-click on class or method name

 

 

ios 模拟器的快捷键:

home button:              Cmd-Shift-H

模拟器中关闭一个app: shift+command+H twice to simulate the double tap of home button, and then swipe your app's screenshot upward to close it.

-------------------------查看模拟器输出的log-----------------------------------------

iOS Simulator prints directly to stdout, so you can see the logs mixed up with system logs.

Open the Terminal and type: tail -f /var/log/system.log

Then run the simulator.

EDIT:

This stopped working on Mavericks/Xcode 5. Now you can access the simulator logs on it's own folder: ~/Library/Logs/iOS Simulator/<sim-version>/system.log

You can either use the Console.app to see this, or just do a tail (iOS 7.0.3 64 bits for example):

tail -f ~/Library/Logs/iOS\ Simulator/7.0.3-64/system.log

Under iOS 8 this location is now:

~/Library/Logs/CoreSimulator/<DEVICE_CODE>

So, the following will work:

tail -f ~/Library/Logs/CoreSimulator/<DEVICE_CODE>/system.log

The DEVICE_CODE value can be found via the following console command:

instruments -s devices

-------------------------查看模拟器输出的log end----------------------------------------- 

posted @ 2015-02-11 10:13  微信公众号--共鸣圈  阅读(249)  评论(0编辑  收藏  举报