Need help to fix my app

Discussion in 'iOS Programming' started by blakedut2, Sep 5, 2009.

  1. blakedut2 macrumors newbie

    Sep 3, 2009
    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!!!!:(:(:(:(:(:(:(:(:(:(:(
  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Could you provide some code snippets and perhaps a more detailed error message? That is, we need more details before we can help you.
  3. ghayenga macrumors regular

    Jun 18, 2008
    You can only add objects to an NSArray, if that's what you're trying to do. Use NSNumber objects.
  4. firewood macrumors 604

    Jul 29, 2003
    Silicon Valley
    Try using a plain C array.

    int myArray[100];

    myArray = j;

Share This Page