Skip to content

Instantly share code, notes, and snippets.

@Koze
Last active August 29, 2015 14:19
Show Gist options
  • Save Koze/49fe697a35ad0b3a3e9d to your computer and use it in GitHub Desktop.
Save Koze/49fe697a35ad0b3a3e9d to your computer and use it in GitHub Desktop.
Fonts & Colors
#import <Founodation/Foundation.h>
// comment
/*
comment
*/
#import <Founodation/Foundation.h>
/*!
comment
*/
/*!
comment
@param ...
@return ...
*/
#import <Foundation/Foundation>
#include <test.h>
#define kTest "test"
@interface MyObject : NSObject
@property (nonatomic, readonly) BOOL flag;
@end
@implementation MyObject
- (instancetype)init
{
self = [super init];
if (self) {
}
return self;
}
@end
@interface MyObject : NSObject
- (void)method;
void func();
@end
@implementation MyObject
- (void)method
{
}
void func()
{
}
@end
#import <UIKit/UIKit.h>
#import "MyObject.h"
- (void)method
{
NSString *string = @"string";
char *c = "string";
int i = 123;
NSNumber *number = @(i);
NSArray *array = @[number];
NSDictionary *dictionary = @{@"key": number};
}
#import <Foundation/Foundation.h>
// http://www.example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment