ios - For loop when I don't know what objects are in an array? -
itemprop = "text">
I have an array with some objects Want loop I thought I would use What is wrong with I am a beggar in iOS Dev. btw, uses continuous object syntax, such code is more legible: id for typing.
NSArray * myArray = [[NSArray alloc] initWithObjects: @ "one string", @ "other", @ 3, zero]; (Id = some in myArray) {....}
for
loop? Why can not I use the
id and what will be the proper "type" to use it.
id is an intrinsic indication, so you only need all Is:
@ [@ "one string", @ "other", @ 3]
Comments
Post a Comment