Month: April 2014

  • pop quiz: why are my parameters zero when I pass them in with non-zero values

    This one had me stuck for a number of minutes. It’s not hard, but it got me. See if you can spot it: say you create a new class that is inited like so: @interface YoDogWhatsWrong @property (nonatomic) float aValue; @end @implementation YoDogWhatsWrong – (id)initWithAValue:(float)aFloat anotherValue:(float)someOtherValue { if ((self = [super init])) { self.aValue = […]