Skip to content

Instantly share code, notes, and snippets.

View Shilo's full-sized avatar

Shilo Shilo

View GitHub Profile
@Shilo
Shilo / UIView+Additions.h
Created November 10, 2011 01:30
A simple category that allows one to easily set/get UIView rotation.
//
// UIView+Additions.h
//
// Created by Shilo White on 10/8/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UIView (Additions)
@Shilo
Shilo / SPDisplayObject+Loopability.h
Created November 10, 2011 02:55
A simple category for Sparrow that allows one to change the loopability of a SPDisplayObject.
//
// SPDisplayObject+Loopability.h
// Sparrow
//
// Created by Shilo White on 11/9/11.
// Copyright (c) 2011 Shilocity Productions. All rights reserved.
//
#import "SPDisplayObject.h"
@Shilo
Shilo / SPTextField+Shadow.h
Created November 10, 2011 04:25
A category for Sparrow that allows shadows on a SPTextField.
//
// SPTextField+Shadow.h
// Sparrow
//
// Created by Shilo White on 11/9/11.
// Copyright (c) 2011 Shilocity Productions. All rights reserved.
//
#import "SPTextField.h"
@Shilo
Shilo / SPDisplayObject+Image.h
Created November 10, 2011 07:35
A category for Sparrow 1.X that allows a SPDisplayObject to be dynamically converted to a UIImage.
//
// SPDisplayObject+Image.h
// Sparrow
//
// Created by Shilo White on 11/9/11.
// Copyright (c) 2011 Shilocity Productions. All rights reserved.
//
#import "SPDisplayObject.h"
@Shilo
Shilo / SPRenderTexture+Erase.h
Created November 11, 2011 06:52
A category for Sparrow that allows erasing of a SPRenderTexture.
//
// SPRenderTexture+Erase.h
// Sparrow
//
// Created by Shilo White on 11/10/11.
// Copyright (c) 2011 Shilocity Productions. All rights reserved.
//
#import "SPRenderTexture.h"
@class SPDisplayObject;
@Shilo
Shilo / SHBlendModes.h
Created March 12, 2012 04:09
A category for Sparrow that allows blend modes.
//
// SHBlendModes.h
//
// Created by Shilo White on 3/11/12.
// Copyright (c) 2012 Shilocity Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SPDisplayObject.h"
#import <OpenGLES/ES1/gl.h>
@Shilo
Shilo / MemoryManager.h
Created March 13, 2012 03:39
A simple static class to output semi-accurate memory usage and free memory during runtime.
//
// MemoryManager.h
//
// Created by Shilo White on 3/12/12.
// Copyright (c) 2012 Shilocity Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MemoryManager : NSObject
@Shilo
Shilo / SHAlphaButton.h
Created March 13, 2012 05:43
An extension for Sparrow that allows alpha handing of texture-based objects. (Sparrow 1.X)
//
// SHAlphaButton.h
// Sparrow
//
// Created by Shilo White on 8/13/11.
// Copyright 2011 Shilocity Productions. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SPButton.h"
@Shilo
Shilo / NSString+Spacing.h
Created March 21, 2012 07:54
A NSString category that allows spacing between characters.
@interface NSString (Spacing)
- (NSString *)stringWithSpacing:(int)spacing;
- (NSString *)stringWithSpacing:(int)spacing andSpacingString:(NSString *)spacingString;
@end
@implementation NSString (Spacing)
- (NSString *)stringWithSpacing:(int)spacing {
return [self stringWithSpacing:spacing andSpacingString:@" "];
}
@Shilo
Shilo / SPTexture+Web.h
Created October 17, 2012 03:50
An extension for Sparrow that allows SPImage/SPTexture to load web files, NSData, and asynchronously. (Requires ARC)
//
// SPTexture+Web.h
// SPTexture+Web
//
// Created by Shilo White on 10/16/12.
//
// (Requires Automatic Reference Counting)
#import "SPTexture.h"
#import "SPImage.h"