Skip to content

Instantly share code, notes, and snippets.

Erkan YILDIZ erkanyildiz

View GitHub Profile
View EYCrashTesting.h
// erkanyildiz
// 20180225-2331+0900
//
// EYCrashTesting.h
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface EYCrashTesting : NSObject
@erkanyildiz
erkanyildiz / EYHilbertCurveView.h
Last active Jun 7, 2017
Colorful Hilbert Curves from Level 1 to Level 5
View EYHilbertCurveView.h
// erkanyildiz
// 20170608-0308+0900
//
// EYHilbertCurveView.h
#import <UIKit/UIKit.h>
@interface EYHilbertCurveView : UIView
@erkanyildiz
erkanyildiz / FontAwesome.h
Last active Aug 22, 2018
An helper to use FontAwesome iconic font semantically with image rendering and caching support.
View FontAwesome.h
// 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 / LocalizationTerms.md
Last active Feb 24, 2018
Language Designator, Script Designator, Region Designator, Language ID, Locale ID all explained with examples.
View LocalizationTerms.md

Language Designator ISO 639-1

  • Specifies a language
  • 2-letters, lowercase
  • Ex:
en          English         
tr          Turkish         
ko          Korean
@erkanyildiz
erkanyildiz / EYSupportMailComposer.h
Last active Dec 9, 2018
Support mail composer with activity indicator
View EYSupportMailComposer.h
// erkanyildiz
// 20170828-2105+0900
//
// EYSupportMailComposer.h
#import <Foundation/Foundation.h>
@interface EYSupportMailComposer : NSObject
+ (void)presentMailComposerOnViewController:(UIViewController *)viewController withEmail:(NSString *)email;
@erkanyildiz
erkanyildiz / EYUSBDeviceConnectivity.h
Created Mar 11, 2016
A simple helper class to check and get notified if a USB device is connected/disconnected
View EYUSBDeviceConnectivity.h
// erkanyildiz
// 20160311-1158
//
// EYUSBDeviceConnectivity.h
#import <Foundation/Foundation.h>
@interface EYUSBDeviceConnectivity : NSObject
+ (instancetype)sharedInstance;
@property (nonatomic, copy) void (^onDeviceConnect)(NSNotification* notification);
@erkanyildiz
erkanyildiz / EYDigitalCamouflageImage.h
Last active Jun 7, 2017
Simple UIImage with digital camouflage patterns (Woodland, Snow, Desert, Naval, Savanna, Airborne, Ocean, Arid)
View EYDigitalCamouflageImage.h
// erkanyildiz
// 20160620-1913
//
// EYDigitalCamouflageImage.h
#import <UIKit/UIKit.h>
typedef enum:NSInteger
{
EYDCIWoodland,
@erkanyildiz
erkanyildiz / EYAudioManager.h
Last active Aug 15, 2017
Audio manager with persistent muting
View EYAudioManager.h
// erkanyildiz
// 20170815-2020+0900
//
// EYAudioManager.h
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
extern NSString * const EYAudioManagerMuteStateChangedNotification;
@interface EYAudioManager : NSObject <AVAudioPlayerDelegate>
@erkanyildiz
erkanyildiz / EYInfiniteEquilateralTriangleAnimationView.h
Created Aug 13, 2015
Infinite Equilateral Triangle Animation as Activity Indicator
View EYInfiniteEquilateralTriangleAnimationView.h
// erkanyildiz
// 20150813-1940
//
// EYInfiniteEquilateralTriangleAnimationView.h
#import <UIKit/UIKit.h>
@interface EYInfiniteEquilateralTriangleAnimationView : UIView
- (instancetype) initWithSide:(CGFloat)side andCenter:(CGPoint)center;
- (void) start;
@erkanyildiz
erkanyildiz / EYGistRemoteConfig.h
Last active Dec 18, 2018
A simple implementation to use GitHub Gist's as Remote Config.
View EYGistRemoteConfig.h
// erkanyildiz
// 20181113-1340+0900
//
// EYGistRemoteConfig.h
#import <Foundation/Foundation.h>
@interface EYGistRemoteConfig : NSObject
+ (void)fetchRemoteConfigWithGistID:(NSString *)gistID completion:(void(^)(id config, BOOL updated, NSError* error))completion;
+ (void)clearLocalConfigWithGistID:(NSString *)gistID;
You can’t perform that action at this time.