Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Blog Reader iPhone App Exploring the Master-Detail Template Passing Data To The Detail View

debug

I put a breakpoint at this line if ([[seque identifier] isEqualToString:@"showDetail"]) { ... } when the breakpoint is triggered how can i check value of the "seque identifier" and destinationViewController? Thx.

1 Answer

In the console you can print out the value of varible by using po (print out). For example:

(lldb) po segue.identifier

showDetail

(lldb) po segue.destinationViewController

<DetailViewController: 0x997bd00>