Changes

Jump to: navigation, search

The Objective-C switch Statement

5 bytes removed, 21:05, 1 February 2016
m
Text replacement - "<google>BUY_OBJC</google>" to "<htmlet>objc<htmlet>"
<hr>
<googlehtmlet>BUY_OBJCobjc</googlehtmlet>
In [[Objective-C Flow Control with if and else]] we looked at how to control program execution flow using the ''if'' and ''else'' statements. Whilst these statement constructs work well for testing a limited number of conditions they quickly become unwieldy when dealing with larger numbers of possible conditions. To simplify such situations Objective-C has inherited the ''switch'' statement from the C programming language. In this chapter we will explore the ''switch'' statement in detail.

Navigation menu