Question

I want a class that take a REQUIRED argument like the UITableViewController that does not have init.

Currently I just throw an exception when invoking init.

Is there a way to deactivate it completely?

Was it helpful?

Solution

No. Just redefine it to some error condition. This is bad style anyway and I question your motives.

OTHER TIPS

A non-existant method (anywhere in the class hierarchy) for any object would cause the runtime to throw an exception. If that's what you mean by a deactivated method, and you're throwing an exception already, then you're already done.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top