How to let first letter keep lower in Xcode?

Discussion in 'iOS Programming' started by mikezang, Jul 13, 2010.

  1. macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I defined a class as below, when I typed code after "*s" in @property, Xcode gave me a prompt for "SwitchViewController", but I need "switchViewController", what can I let Xcode keep that first letter in lower case?
    Code:
    @interface MyAppDelegate: NSObject < UIApplicationDelegate> {
        SwitchViewController *switchViewController;
    
    @property (nonatomic, retain) IBOutlet SwitchViewController *
    @end
    
     
  2. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Just keep typing and it'll switch to the lower-case version when you hit the V. Another approach to take to make sure it autocompletes quicker is to not give your instance variables the same name (other than case) as your class names, such as mySwitchViewController or aSwitchViewController or initialSwitchViewController or something like that.
     
  3. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    Thanks for your suggestion.

    I used a alt way to do it, pressed ESC, so it switch to lower case.
     

Share This Page