Changes

Jump to: navigation, search

The Objective-C switch Statement

1 byte added, 21:06, 1 February 2016
m
Text replacement - "<htmlet>objc<htmlet>" to "<htmlet>objc</htmlet>"
<hr>
<htmlet>objc</htmlet>
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