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
/* | |
Place following code in your info.plist file. | |
<key>LSApplicationQueriesSchemes</key> | |
<array> | |
<string>hostApplicationURLScheme</string> | |
</array> | |
*/ | |
#import <StoreKit/StoreKit.h> |
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
#import <UIKit/UIKit.h> | |
@interface CodeGenerator : NSObject | |
+ (UIImage *)qrCodeForString:(NSString *)string; | |
+ (UIImage *)barCodeForString:(NSString *)string; | |
@end |
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
if (@available(iOS 11.0, *)) {} |
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
#import <UIKit/UIKit.h> | |
@class SomeViewController; | |
@protocol SomeViewControllerDelegate <NSObject> | |
-(void)delegateMethodName:(SomeViewController *)controller; | |
@end | |
@interface SomeViewController : UIViewController | |
@property (nonatomic, weak) id<SomeViewControllerDelegate> delegate; |
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
Macros from TargetConditionals.h. | |
iOS 9+ only. | |
TARGET_OS_WIN32 - Generated code will run under 32-bit Windows | |
TARGET_OS_UNIX - Generated code will run under some Unix (not OSX) | |
TARGET_OS_MAC - Generated code will run under Mac OS X variant | |
TARGET_OS_OSX - Generated code will run under OS X devices | |
TARGET_OS_IPHONE - Generated code for firmware, devices, or simulator | |
TARGET_OS_IOS - Generated code will run under iOS | |
TARGET_OS_TV - Generated code will run under Apple TV OS |