Learn-Objective-C-in-24-Days-Clone icon indicating copy to clipboard operation
Learn-Objective-C-in-24-Days-Clone copied to clipboard

Just fixes stuff with autorelease and examples that do not work

Open prosavage opened this issue 3 years ago • 1 comments

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", &times);

prosavage avatar Sep 14 '20 18:09 prosavage

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.

prosavage avatar Sep 14 '20 18:09 prosavage