hit counter

Timeline

My development logbook

Cannot Init a Class Object

Got this exception

1
2
2013-12-16 17:35:59.976 MyProject[41964:70b] *** Terminating app due to uncaught 
exception 'NSInvalidArgumentException', reason: '*** +[MyClass<0x100084d80> init]: cannot init a class object.'

It is because I have mistakenly written

1
[[MyClass init] alloc];

instead of

1
[[MyClass alloc] init];