I know how to do it in Ruby, converting a range of numbers to an array. But how is it possible in Objective-C?
Ruby: (1..100).to_a
(1..100).to_a
You'll need to write a simple loop. There isn't any "range of numbers" operator in Objective-C.