Common Errors
Debugging Tools
TableViews
Storyboards
Keyboard Shortcuts
100

"Value is not key-value coding compliant for the key overviewLabel"

What is/caused the issue?

Broken IBOutlets. You deleted the outlet in the code but forgot to delete in the Storyboard, or vice versa.

100

Where do errors appear in Xcode?

(Where do we look to find them?)

The "Log" (the right half of the bottom pane in Xcode)

100

Which delegate method in the ViewController.m tells the tableview how many cells to show?

[tableView numberOfRowsInSection: ...];

100

This view is used to display any text on the screen.

UILabel

100

This runs the app again

Cmd+R

200

Unrecognized selector sent to instance

Calling a function that does not exist.

Or, Broken IBAction. You deleted the IBAction function in the code but forgot to delete in the Storyboard, or vice versa.

200

A method that prints any string to the error console.

NSLog()

200

Two lines of code you need in your ViewController.m's [viewDidLoad... ] method in order to power a TableView.

self.tableView.dataSource = self;

self.tableView.delegate = self;

200

What does a segue do?

Navigate from one screen to another.

200

This comments-out your highlighted code

Cmd+/

300

What's wrong with this code block?

(tableview isn't reloading)

"[tableView reloadData];" call happens too soon.

It needs to be moved to line 42-43 to wait until new tweets are loaded from the server before reloading the tableView.

300

How to freeze the app at one line of code, to inspect the current value of variables at that moment in time?

Breakpoints

300

Which delegate method in your ViewController.m tells the tableView how to configure the content within a cell, just before the cell is displayed on the screen?

[tableView cellForRowAt...]

300

This type of controller is used to display a Back button on top of each screen embedded within it.

UINavigationController

300

Quickly search for a file in your project

Cmd+Shift+O

400

Incompatible pointer types assigning to 'UITableViewDelegate *' from 'MoviesViewController *'


Forgot to implement the <UITableViewDelegate> protocol.


400

You see an error about "overviewLabel" in your log, and want to narrow down where the problematic code must be.

What's the keyboard shortcut to search the whole project for any phrase like "overviewLabel" ?

Cmd+Shift+F

400

Which delegate method can be created to handle what happens when a user taps on your tableView cell?

[tableView didSelectRowAtIndexPath...]

400

The type of view/element that we used to select and change the Tip amount %

UISegmentedControl

400

Clean your project

Cmd+Shift+K

500

You get a super vague "signal SIGABRT" in AppDelegate.

What dynamic/specialized breakpoint can you add to narrow down the issue to a specific line of your code.

Exception Breakout in the Breakpoint Navigator (left pane)

500

You get a super vague "signal SIGABRT" in AppDelegate.

How do you add an Exception Breakout to your project to help narrow down the issue to a specific erroneous line of your code?

500

(for those who are looking ahead and checked out Week 2 things)

When using Auto Layout to make a cell's height dynamic based on the length of the Tweet within it, what line of code is required in your ViewController.m to tell the TableView that the rowHeight should be Automatic?

500

To design a single TableView Cell that can be re-used in multiple Storyboards across your app, you can design that Cell in a ___ file.

XIB file

500

This opens the side-by-side Assistant Editor

Ctrl+Option+Cmd+Enter