summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--objective-c.html.markdown2
1 files changed, 0 insertions, 2 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown
index 98179f97..886f80e2 100644
--- a/objective-c.html.markdown
+++ b/objective-c.html.markdown
@@ -336,10 +336,8 @@ NSLog(@"%i", myClass.count); // prints => 45
// To access public variable from the interface file, use '_' followed by variable name:
_count = 5; // References "int count" from MyClass interface.
-NSLog(@"%d", _count); // prints => 5
// Access variables defined in implementation file:
distance = 18; // References "long distance" from MyClass implementation.
-NSLog(@"%li", distance); // prints => 18
// Call when the object is releasing
- (void)dealloc