Skip to content

Instantly share code, notes, and snippets.

@Rich86man
Created October 18, 2012 18:46
Show Gist options
  • Save Rich86man/3914031 to your computer and use it in GitHub Desktop.
Save Rich86man/3914031 to your computer and use it in GitHub Desktop.
#import <UIKit/UIKit.h>
@interface UIImage(Extras)
+ (UIImage*)imageWithImage:(UIImage*)image scaledToSize:(CGSize)newSize;
+ (UIImage*)strechyWhiteButton;
+ (UIImage*)strechyWhiteButtonPressed;
+ (UIImage*)strechyPinkButton;
+ (UIImage*)strechyPinkButtonPressed;
+ (UIImage*)snapshotFromVideoURL:(NSURL*)url;
- (UIImage*)resizedImageByAspectFill:(CGSize)imageSize;
- ( BOOL ) hasSameBits:( id ) object;
@end
#import <UIKit/UIKit.h>
@interface UIView (Extras)
@property (assign) CGSize size;
@property (assign) CGPoint origin;
@property (assign) CGFloat x;
@property (assign) CGFloat y;
@property (assign) CGFloat width;
@property (assign) CGFloat height;
- (void)enableGestures;
- (void)disableGestures;
@end
#import <Foundation/Foundation.h>
@interface NSFileManager (Extras)
+ (void)safeDeleteFilesAtURLs:(NSArray*)urls;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment