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 2. The Power of Brackets > Loops: For Better or For Worse

2.9. Loops: For Better or For Worse

Looping with variables is probably one of the first programming concepts you learned. You'll be happy to know that Objective-C has for loops—and the syntax is better than that of plain C.

You'll learn all about the NSArray class in the next chapter, but for the moment all you need to know is that it's a class that manages zero or more objects. When you have more than one of something, it's likely that you'll want to loop over the contents at some point.


  

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