Skip to content

Instantly share code, notes, and snippets.

@cryptojuice
Created August 26, 2015 18:35
Show Gist options
  • Save cryptojuice/66067de503dffc7669f3 to your computer and use it in GitHub Desktop.
Save cryptojuice/66067de503dffc7669f3 to your computer and use it in GitHub Desktop.
Resource.h
----------
@interface Resource : NSObject
+ (void)save:(NSError **)error;
@end
Resource.m
----------
@implementation Resource
+ (void)save:(NSError **)error {
//do soething
}
@end
QuestionResource.h
------------------
#import "Resource.h"
@interface : Resource
@end
QuestionResource.m
------------------
@implementation
@end
ExampleViewController.m
-----------------------
#import "QuestionResource.h"
QuestionResource q = [[QuestionResource alloc] init];
NSError *error = nil;
[q save:&error];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment