Log using NSLog.

By logging with NSLog instead of printf, output is also written to the system console. This is useful for debugging, especially on a remote device (e.g. iOS).