mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Removed NSLog() statements inside @implementation where not allowed.
This commit is contained in:
parent
dcf6331eec
commit
bfa623ac49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user