mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
minor change
This commit is contained in:
parent
3fe1c3c8a5
commit
664d592bc7
@ -20,6 +20,7 @@ Multi-line comments look like this.
|
|||||||
|
|
||||||
// Imports the Foundation headers with #import
|
// Imports the Foundation headers with #import
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
#import "MyClass.h"
|
||||||
|
|
||||||
// Your program's entry point is a function called
|
// Your program's entry point is a function called
|
||||||
// main with an integer return type.
|
// main with an integer return type.
|
||||||
@ -212,7 +213,7 @@ int main (int argc, const char * argv[])
|
|||||||
// Classes And Functions
|
// Classes And Functions
|
||||||
///////////////////////////////////////
|
///////////////////////////////////////
|
||||||
|
|
||||||
// Declare your class in a header(.h) file:
|
// Declare your class in a header(MyClass.h) file:
|
||||||
// Class Declaration Syntax:
|
// Class Declaration Syntax:
|
||||||
// @interface <class name> : <parent classname>
|
// @interface <class name> : <parent classname>
|
||||||
// {
|
// {
|
||||||
@ -241,7 +242,7 @@ int main (int argc, const char * argv[])
|
|||||||
-
|
-
|
||||||
@end
|
@end
|
||||||
|
|
||||||
// Implement the methods in an implementation (.m) file:
|
// Implement the methods in an implementation (MyClass.m) file:
|
||||||
|
|
||||||
@implementation UserObject
|
@implementation UserObject
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user