Skip to Content
iOS 10 SDK Development, 1st Edition
book

iOS 10 SDK Development, 1st Edition

by Chris Adamson, Janie Clayton
March 2017
Intermediate to advanced
264 pages
7h 26m
English
Pragmatic Bookshelf
Content preview from iOS 10 SDK Development, 1st Edition

Logging Messages

For novice developers, the first line of defense against bugs is to just write messages to the console to see what’s going on. We’ve been doing this with the print function way back in for Loops, and have used it occasionally throughout the book, usually as a placeholder to make sure our app reached the new code we were writing.

The gist of print is that it will print a message to the console that only we will see. (Foundation also has an NSLog function that provides a timestamp and the process name of the app.) It might seem counterintuitive to create output that only we will see, but it is vitally important to have some means of verifying what is happening in our program.

Let’s put ourselves in a situation where we might ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning iPhone Development with Swift 3: Exploring the iOS SDK, Third Edition

Beginning iPhone Development with Swift 3: Exploring the iOS SDK, Third Edition

Molly Maskrey, Kim Topley, David Mark, Fredrik Olsson, Jeff Lamarche
More iPhone Development with Objective-C

More iPhone Development with Objective-C

David Mark, Jayant Varma, Jeff LaMarche, Alex Horovitz, Kevin Kim

Publisher Resources

ISBN: 9781680502572Errata Page