My Xcode Habits

I like to get the few people who actually read my website slightly annoyed, and so I thought what better way to achieve such a thing than by posting three things that I do in Xcode that you inevitably and vehemently ​disagree with.

  • ​I avoid using primitive types such as int and float as much as possible. Instead I opt for NSInteger, NSUInteger, CGFloat and so on. There are certainly cases where the former must be used, but NSNumber tends to help avoid even those rare instances.
  • ​When using NSInteger, or BOOL, I will add the 'assign' declaration. Technically assigns an instance variable to these properties, but I'm not sure whether it even does anything anymore.
  • I will never use Storyboards and will occasionally avoid the Interface Builder if I can. Storyboards seem too guided and I don't like the idea of it, but when it comes to XIBs there are times where the layout is made much easier by not coding it all. However, I really enjoy the control that programming a layout can give you, and I've even started embracing AutoLayout.