I have a constructor like this:
-(id) init
{
// do something here...not sure what yet :)
}
I can instantiate objects of this class just fine, but I was getting errors calling method on this class. Why is that the case? What am I missing here? Should I have called the superclass constructor? Or is there a memory issue somehow?
Thanks!
You are missing a call to the designated initializer of the superclass, an assignment to
self, and areturnstatement.Your minimal unfinished constructor should look like this: