Show Menu
Cheatography

Objective-C Cheat Sheet (DRAFT) by

A summary of the Objective-C programming language.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

C Language Basics

Data-Type
short int float long double
Branch­-St­ructure
if...else switch...case
Loop-S­tru­cture
while do...while for for...in
 

Class Implem­ent­ation

@implemention ClassName
- (type) objectMethod{
    return type;
}
+ (type) classMethod{
    return type;
}
@end

Class Declar­ation

@interface ClassName : NSObject{
    Type memberVariable;
}
@property Type memberProperty;
- (type) objectMethod;
+ (type) classMethod;
@end