1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-25 07:41:26 +02:00

Fix typos.

This commit is contained in:
Levi Bostian
2014-01-07 08:41:07 -06:00
parent bfa623ac49
commit afa93d54ad
2 changed files with 448 additions and 2 deletions

View File

@@ -288,7 +288,7 @@ int main (int argc, const char * argv[])
// @property type name; <= property declarations.
// -/+ (type) Method declarations; <= Method declarations.
// @end
@interface MyClass : NSObject <MyProtocol> // NSObject is Objective-C base object class.
@interface MyClass : NSObject <MyProtocol> // NSObject is Objective-C's base object class.
{
// Instance variable declarations (can exist in either interface or implementation file).
int count; // Protected access by default.
@@ -334,7 +334,7 @@ NSLog(@"%i", myClass.count); // prints => 45
long distance; // Private access instance variable.
}
// To access public variable from the interface file, use '_' followed by variable name:
// To access a public variable from the interface file, use '_' followed by variable name:
_count = 5; // References "int count" from MyClass interface.
// Access variables defined in implementation file:
distance = 18; // References "long distance" from MyClass implementation.