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

#2. View animations

If you’ve spent any time with an iOS device, you know that smooth transitions and graceful animations define the user experience. In the applications we’ve built so far, we’ve only touched on a few basic animations (like the flip animation used in iBountyHunter). However, everything from adding and removing table rows to sliding controls around the screen can be animated.

Animating table view updates

If you’re going to add or remove multiple rows in a table view, you can ask it to provide a smooth animation (as well as a more efficient handling of updating the table view itself) by sending it the beginUpdates message before you start manipulating the data, then an endUpdates when you’re finished, like this:

image with no caption

  

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