View Full Version : Need help to fix my app
blakedut2
Sep 5, 2009, 03:07 AM
I am writing an app for the app store and it involves an array. This array needs to hold integers but every time i simulate my app, a warning pops up telling me it cant work because it has integers. I need my array of integers!!
PLEASE HELP!!!!:(:(:(:(:(:(:(:(:(:(:(
dejo
Sep 5, 2009, 11:29 AM
Could you provide some code snippets and perhaps a more detailed error message? That is, we need more details before we can help you.
ghayenga
Sep 5, 2009, 03:41 PM
I am writing an app for the app store and it involves an array. This array needs to hold integers but every time i simulate my app, a warning pops up telling me it cant work because it has integers. I need my array of integers!!
PLEASE HELP!!!!:(:(:(:(:(:(:(:(:(:(:(
You can only add objects to an NSArray, if that's what you're trying to do. Use NSNumber objects.
firewood
Sep 5, 2009, 04:19 PM
Try using a plain C array.
int myArray[100];
...
myArray[i] = j;
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.