Skip to content

Instantly share code, notes, and snippets.

View erkanyildiz's full-sized avatar

Erkan YILDIZ erkanyildiz

View GitHub Profile
@erkanyildiz
erkanyildiz / EYDigitalCamouflageImage.h
Last active June 7, 2017 18:26
Simple UIImage with digital camouflage patterns (Woodland, Snow, Desert, Naval, Savanna, Airborne, Ocean, Arid)
// erkanyildiz
// 20160620-1913
//
// EYDigitalCamouflageImage.h
#import <UIKit/UIKit.h>
typedef enum:NSInteger
{
EYDCIWoodland,
@erkanyildiz
erkanyildiz / EYAudioManager.h
Last active August 15, 2017 11:21
Audio manager with persistent muting
// erkanyildiz
// 20170815-2020+0900
//
// EYAudioManager.h
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
extern NSString * const EYAudioManagerMuteStateChangedNotification;
@interface EYAudioManager : NSObject <AVAudioPlayerDelegate>
// erkanyildiz
// 20180225-2331+0900
//
// EYCrashTesting.h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface EYCrashTesting : NSObject
@erkanyildiz
erkanyildiz / FontAwesome.h
Last active August 22, 2018 16:25
An helper to use FontAwesome iconic font semantically with image rendering and caching support.
// erkanyildiz
// 20180823-0122+0900
//
// FontAwesome.h
// Based on FontAwesome 4.7.0
// Check https://fontawesome.com/v4.7.0/cheatsheet/ for icons
// Make sure FontAwesome.otf is specified in info plist file, and added to bundle resources.
#import <Foundation/Foundation.h>
@erkanyildiz
erkanyildiz / EYVersionLabel.h
Last active November 28, 2018 14:33
Convenience label for displaying app name, app version and copyright dates automatically
// erkanyildiz
// 20161004-1321+0900
//
// EYVersionLabel.h
#import <UIKit/UIKit.h>
@interface EYVersionLabel : UILabel
@property (nonatomic, strong) NSNumber* initialYear;
@end
@erkanyildiz
erkanyildiz / EYSupportMailComposer.h
Last active December 9, 2018 06:35
Support mail composer with activity indicator
// erkanyildiz
// 20170828-2105+0900
//
// EYSupportMailComposer.h
#import <Foundation/Foundation.h>
@interface EYSupportMailComposer : NSObject
+ (void)presentMailComposerOnViewController:(UIViewController *)viewController withEmail:(NSString *)email;
@erkanyildiz
erkanyildiz / EYUtils.h
Last active January 29, 2020 03:11
Utilities for Cocoa
// erkanyildiz
// 20191228-2138+0900
//
// EYUtils.h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#ifndef DEBUG_MODE
#define DEBUG_MODE 1
@erkanyildiz
erkanyildiz / iOSDevices
Last active October 1, 2022 22:18
List of iOS devices with names and cpu models
{
"iPhone1,1":
{
"name": "iPhone",
"cpu": "RISC ARM 11"
},
"iPhone1,2":
{
"name": "iPhone 3G",
@erkanyildiz
erkanyildiz / LocalizationTerms.md
Last active October 24, 2023 16:17
Language Designator, Script Designator, Region Designator, Language ID, Locale ID all explained with examples.

Language Designator ISO 639-1

  • Specifies a language
  • 2-letters, lowercase
  • Ex:
en          English         
tr          Turkish         
ko          Korean