Xcode 7: Beyond the first look


Version:

I am using Xcode Version 7.3.1 (7D1014)

Most used keyboard shortcuts Xcode

Action Shortcut Symbol
Run Command + R ⌘ + R
Stop Command + . ⌘ + .
Show Project Navigator Command + 1 ⌘ + 1
Show Quick Help Inspector Option + Command + 2 ⌥ + ⌘ + 2

Most used keyboard shortcuts iOS simulator

Action Shortcut Symbol
Scale 100% Command + 1 ⌘ + 1
Scale 75% Command + 2 ⌘ + 2
Scale 50% Command + 3 ⌘ + 3
Scale 33% Command + 4 ⌘ + 4
Scale 25% Command + 5 ⌘ + 5

Recommended Preferences

  • Goto Xcode preferences (⌘ + ,)
    • Select tab (Text Editing)
      • Check (Line numbers)
    • Select tab (Accounts)
      • Select + (bottom left corner)
      • Add Apple ID
      • Add your apple account credential. This will enable you to run your app in your iOS device. From Xcode 7, you do not need to have a paid account for this. However, uploading app to the App store still require you to have a paid developer account.
    • Select tab (Components)
      • Select sub tab (Documentation)
      • Download the documentations you required. For example, for iOS development it would be helpful to have iOS x.x Documentation and Xcode x.x documentation.

Most used keyboard shortcuts Storyboard

Action Shortcut Symbol
Copy elements Option + Click + Drag ⌥ + Click + Drag
Align Left Edges Command + [ ⌘ + [
Align Right Edges Command + ] ⌘ + ]
Size to Fit Content Command + = ⌘ + =

Embed all views into a single view

  1. Select all the views, you want to embed in
  2. Editor => Embed In => View/ Scroll View/ Stack View
  3. Editor => Resolve Auto Layout Issues => Reset to Suggested Constraints

Debug views in Xcode

  • Run the app. While it is running locate a button in debug section: Debug View Hierarchy
  • See the slider? Drag it to right to zoom in and separate the views
  • Drag on blank area and you can rotate, move the views

Class structure quick look

  • Open a Swift class
  • Editor
    • Code Folding
      • Fold Methods and Functions
      • Fold Comment Blocks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s