Skip to content

Instantly share code, notes, and snippets.

@sapzildj
sapzildj / FileFunctionLevelFormatter.h
Last active August 29, 2015 14:26 — forked from juliengrimault/FileFunctionLevelFormatter.h
Cocoa Lumberjack formatter showing file, function and level of the log
//
// FileFunctionLevelFormatter.h
//
// Created by Julien Grimault on 23/1/12.
// Copyright (c) 2012 Julien Grimault. All rights reserved.
//
#import "DDLog.h"
@interface FileFunctionLevelFormatter : NSObject <DDLogFormatter>
@sapzildj
sapzildj / gist:3144630
Created July 19, 2012 15:20
IIViewDeckViewController support arc and no arc project
#ifndef __has_feature
#define __has_feature(x) 0
#endif
#ifndef __has_extension
#define __has_extension __has_feature // Compatibility with pre-3.0 compilers.
#endif
#if __has_feature(objc_arc) && __clang_major__ >= 3
#define II_ARC_ENABLED 1
#endif // __has_feature(objc_arc)
@sapzildj
sapzildj / gist:2984690
Created June 24, 2012 20:01
prevent ios5 crash becuase of multiful presentInModalViewController call
BOOL gIsTransitionAvailable = YES;
+ (void)presentInModalViewController:(UIViewController *)aViewController animated:(BOOL)aAnimated
{
if (bIOS5) // iOS5인 경우
{
if (gIsTransitionAvailable)
{
gIsTransitionAvailable = NO;