Monday, 4 May 2009

iPhone Development How-tos

View the Console

in Xcode

Run -> Console

Command-Shift-R

if NSLog messages do not appear, use the Xcode organizer (Window->Organizer->Console
or open /Applications/Utilities/Console to view NSLog messages instead

Running Instruments

Run->Start->Performance Tool

to select an instruments template (such as Object Allocations or CPU Sampler) to use with the simulator.

Crash Logs


Although the organizer window offers direct access to crash logs, it is possible to enable Developer Mode for Crash Reporter.

This enables you to see trace backs immediately, without having to click Report all the time. To do this open

/Developer/Applications/Utilities/CrashReportPrefs

select Developer and quit

Open the NIB Tools Inspector


Command-Shift-I

Open the NIB Library


Command-Shift-L

iPhone Simulator Key Shortcuts

Command-Left Arrow

Rotate left

Command-Right Arrow

Rotate right

Command-Shift-H

go home. leave the application and return to the springboard home screen

Command-L

simulates locking the phone