[Objective-C] Instance method -initWithfloat not found return type defaults to id

Tadashi Shigeoka ·  Mon, October 1, 2012

I was troubled by an error in Objective-C saying that a method like the following could not be found.

The cause was simple once I figured it out - I had a typo where I wrote initWithfloat instead of the correct initWithFloat.

■ Error Message

Instance method -initWithfloat not found return type defaults to id

To think that I spent several hours on this…

Reading these resources finally made me realize it. Thank you.

floatからNSNumber作るやり方:三浦仮想研究所

S4U -smile for you-: Instance method ‘-resizedImage:’ not found (return type defaults to ‘id’)

That’s all from the Gemba.