Created
August 26, 2015 18:35
-
-
Save cryptojuice/66067de503dffc7669f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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