[URGENT] Moving an Array?

Discussion in 'iOS Programming' started by ozzieing, Jun 24, 2009.

  1. ozzieing macrumors newbie

    Joined:
    Jun 24, 2009
    #1
    I really need help with this little thing because once its done then my app is finished. Basically I have an array with objects in them but I'm unsure how to move them.

    If I try the standard
    Then I get:
    How can I solve this?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Code:
    [myArray objectAtIndex:1]
    returns id. You clearly (think) you know the type of this object. So cast it to remove the warning.
     
  3. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #3
    Code:
    	[[array objectAtIndex:1] setCenter:Pos];
     

Share This Page