mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +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:
|
// To access public variable from the interface file, use '_' followed by variable name:
|
||||||
_count = 5; // References "int count" from MyClass interface.
|
_count = 5; // References "int count" from MyClass interface.
|
||||||
NSLog(@"%d", _count); // prints => 5
|
|
||||||
// Access variables defined in implementation file:
|
// Access variables defined in implementation file:
|
||||||
distance = 18; // References "long distance" from MyClass implementation.
|
distance = 18; // References "long distance" from MyClass implementation.
|
||||||
NSLog(@"%li", distance); // prints => 18
|
|
||||||
|
|
||||||
// Call when the object is releasing
|
// Call when the object is releasing
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
|
Loading…
Reference in New Issue
Block a user