Skip to content

Instantly share code, notes, and snippets.

@croath
Created July 18, 2016 08:06
Show Gist options
  • Save croath/9436a494860526c95854647e389fbe8e to your computer and use it in GitHub Desktop.
Save croath/9436a494860526c95854647e389fbe8e to your computer and use it in GitHub Desktop.
Availability
//
// 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
//
// 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