Need help to fix my app

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

  1. blakedut2 macrumors newbie

    Joined:
    Sep 3, 2009
    #1
    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

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    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

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

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #4
    Try using a plain C array.

    int myArray[100];

    ...
    myArray = j;
     

Share This Page