Skip to content

Instantly share code, notes, and snippets.

View AalokParikh's full-sized avatar

Wolvorin AalokParikh

  • Ahmedabad, Gujarat, India
View GitHub Profile
@AalokParikh
AalokParikh / UINavigationController+Fade.h
Created October 20, 2012 06:29 — forked from ksm/UINavigationController+Fade.h
UINavigationController custom pop/push transition animation
/*
Copied and pasted from David Hamrick's blog:
Source: http://www.davidhamrick.com/2011/12/31/Changing-the-UINavigationController-animation-style.html
*/
@interface UINavigationController (Fade)
- (void)pushFadeViewController:(UIViewController *)viewController;
- (void)fadePopViewController;
@AalokParikh
AalokParikh / TransitionController.h
Created October 13, 2012 06:23 — forked from xjones/TransitionController.h
TransitionController for animating iOS view controller transitions w/o a controller stack
//
// TransitionController.h
//
// Created by XJones on 11/25/11.
//
#import <UIKit/UIKit.h>
@interface TransitionController : UIViewController
@AalokParikh
AalokParikh / UIImage+Additions.h
Created August 11, 2012 11:10 — forked from Shilo/UIImage+Additions.h
A UIImage category that will replace or remove colors. This allows multiple colors to be changed on a single image, until it has alpha values.
//
// UIImage+Additions.h
// Sparrow
//
// Created by Shilo White on 10/16/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
#define COLOR_PART_RED(color) (((color) >> 16) & 0xff)
#define COLOR_PART_GREEN(color) (((color) >> 8) & 0xff)
@AalokParikh
AalokParikh / TransitionController.h
Created July 7, 2012 08:37 — forked from xjones/TransitionController.h
TransitionController for animating iOS view controller transitions w/o a controller stack
//
// TransitionController.h
//
// Created by XJones on 11/25/11.
//
#import <UIKit/UIKit.h>
@interface TransitionController : UIViewController
@AalokParikh
AalokParikh / gist:2947220
Created June 18, 2012 07:02
Rate My App
#pragma mark - Rate My App
- (void)rateApp {
int launchCount = [[NSUserDefaults standardUserDefaults] integerForKey:@"launchCount"];
launchCount++;
[[NSUserDefaults standardUserDefaults] setInteger:launchCount forKey:@"launchCount"];
BOOL neverRate = [[NSUserDefaults standardUserDefaults] boolForKey:@"neverRate"];