Changes

Objective-C Looping with do and while Statements

5 bytes removed, 21:05, 1 February 2016
m
Text replacement - "<google>BUY_OBJC</google>" to "<htmlet>objc<htmlet>"
<hr>
<googlehtmlet>BUY_OBJCobjc</googlehtmlet>
The Objective-C ''for'' loop described previously works well when you know in advance how many times a particular task needs to be repeated in a program. There will, however, be instances where code needs to be repeated until a certain condition is met, with no way of knowing in advance how many repetitions are going to be needed to meet that criteria. To address this need, Objective-C provides the ''while'' loop (yet another construct inherited by Objective-C from the C Programming Language).