Hi
I'm new to xcode and now after reading a number of tutorials I'm trying to write my first application.
My question is: how can I store numbers in an array. I have this code right now:
How can I change this code so that the array will store numbers. Or should I just store the numbers as strings?
I'm using xCode with cocoa objective-c.
Thanks for helping me!
-Rutger
I'm new to xcode and now after reading a number of tutorials I'm trying to write my first application.
My question is: how can I store numbers in an array. I have this code right now:
Code:
NSMutableArray *myArray = [NSMutableArray array];
[myArray addObject:@"test1"];
[myArray addObject:@"test2"];
How can I change this code so that the array will store numbers. Or should I just store the numbers as strings?
I'm using xCode with cocoa objective-c.
Thanks for helping me!
-Rutger