Skip to content

Instantly share code, notes, and snippets.

View honood's full-sized avatar
👋

HoNooD honood

👋
View GitHub Profile
#import <libkern/OSAtomic.h>
#import <dispatch/dispatch.h>
#import <objc/runtime.h>
@implementation MySingleton
+ (void) load
{
// check for weak-linked libdispatch symbols
if ( dispatch_queue_create != 0 )
@honood
honood / UIColor+Hex.h
Created July 29, 2012 10:39 — forked from ohsc/UIColor+Hex.h
Enable hex value with UIColor
//
// UIColor+Hex.h
//
//
// Created by 超 沈 on 11-12-31.
// Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>