diff options
author | Milo Gilad <milogaccnts@gmail.com> | 2017-08-25 10:18:31 -0400 |
---|---|---|
committer | Milo Gilad <milogaccnts@gmail.com> | 2017-08-25 10:18:31 -0400 |
commit | a6c3a64a4c897a1f7e7acfbfe6318866317770ad (patch) | |
tree | 28b0d35aaf2cdc3e968e182f1de4d5c5e596a970 /objective-c.html.markdown | |
parent | 1abae4b25de43e05df3ba225986997bc72eb3f8a (diff) | |
parent | bce21489d8d7e3a3f3d4ede2154dba082647296e (diff) |
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'objective-c.html.markdown')
-rw-r--r-- | objective-c.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown index 2b599378..04c4e529 100644 --- a/objective-c.html.markdown +++ b/objective-c.html.markdown @@ -786,7 +786,7 @@ MyClass *newVar = [classVar retain]; // If classVar is released, object is still // Automatic Reference Counting (ARC) // Because memory management can be a pain, Xcode 4.2 and iOS 4 introduced Automatic Reference Counting (ARC). // ARC is a compiler feature that inserts retain, release, and autorelease automatically for you, so when using ARC, -// you must not use retain, relase, or autorelease +// you must not use retain, release, or autorelease MyClass *arcMyClass = [[MyClass alloc] init]; // ... code using arcMyClass // Without ARC, you will need to call: [arcMyClass release] after you're done using arcMyClass. But with ARC, |