alloc, init, and new in Objective-C

Viewed 34223

One book for about iPhone programming instantiates classes like this:

[[Class alloc] init]

Another book about Objective-C does it like this:

[Class new]

What's the difference?

4 Answers
Related