Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Exercise

Use Shark and Instruments to find leaks in the Twitter example. Fix the leaks and debug any resulting bugs. For instance, after adding autorelease to friendVC, and running for a while, I get the following error in gdb:
 *** –[TwitterViewController updateIterator:delta:]: message sent to
deallocated instance 0x47f34f0

To reproduce it, you’ll need to subscribe to fast-updating Twitter services like CombatSI and BreakingNews, and look at a number of friends’ tweet streams. Use the Instruments application and NSZombie to isolate and fix the bug.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint