Created
July 18, 2016 08:06
-
-
Save croath/9436a494860526c95854647e389fbe8e to your computer and use it in GitHub Desktop.
Availability
This file contains 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
// | |
// NSObject+Cool.h | |
// PatriciaTest | |
// | |
// Created by croath on 7/18/16. | |
// Copyright © 2016 Croath. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <Availability.h> | |
#ifdef __IPHONE_7_0 | |
@interface NSObject (Cool) | |
+ (NSString*)coolString; | |
@end | |
#endif |
This file contains 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
// | |
// NSObject+Cool.m | |
// PatriciaTest | |
// | |
// Created by croath on 7/18/16. | |
// Copyright © 2016 Croath. All rights reserved. | |
// | |
#import "NSObject+Cool.h" | |
#ifdef __IPHONE_7_0 | |
@implementation NSObject (Cool) | |
+ (NSString*)coolString { | |
return @"Cool"; | |
} | |
@end | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment