Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mikezang

macrumors 6502a
Original poster
May 22, 2010
939
41
Tokyo, Japan
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
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.