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
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Assembling Views and Animatio... > Recipe: Tagging and Retrieving Views

Recipe: Tagging and Retrieving Views

The iOS SDK offers a built-in search feature that lets you recover views by tagging them. Tags are just numbers, usually positive integers, that identify a view. Assign them using the view’s tag property: for example, myView.tag = 101. In Interface Builder, you can set a view’s tag in the attributes inspector. As Figure 6-2 shows, you specify the tag in the View section.

Figure 6-2. Set the tag for any view in Interface Builder’s attributes inspector.



  

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