Xcode Autocomplete Methods with Multiple Arguments

Discussion in 'iOS Programming' started by zachsilvey, Dec 17, 2010.

  1. zachsilvey macrumors 6502

    Joined:
    Feb 5, 2008
    Location:
    Battle Ground
    #1
    If I create a method in a custom class that happens to take more than one argument (see example) Xcode doesn't autocomplete the entire method only the first part of it. Is it because I have synthesized accessors for the name and email and it is trying to autocomplete those?

    Code:
    -(void) setName: (NSString *) theName andEmail: (NSString *) theEmail;
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    What happens if you bring up the autocompletion choices pop-up?
     
  3. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #3
    There are lots of bugs and problems with the autocomplete feature. I've seen this one. You might try to rebuild the code sense index. There's a button for that in the Project settings window. Sometimes that fixes things (for a while).
     

Share This Page