Learn-Objective-C-in-24-Days-Clone
Learn-Objective-C-in-24-Days-Clone copied to clipboard
Just fixes stuff with autorelease and examples that do not work
The example uses
scanf("%d", times);
which is wrong, since it needs the address of the variable to actually assign it.
Changed to:
scanf("%d", ×);
Remove NSAutoreleasepool
Uses the @autoreleasepool {} instead of old way.
I also removed the explanation of the NSAutoReleasePool statement in the line 132, since its not mentioned anymore.