Skip to content

Instantly share code, notes, and snippets.

View VilemKurz's full-sized avatar

Vilém Kurz VilemKurz

  • Inloop
  • Nová baňa, Slovakia
View GitHub Profile
@justin
justin / UIImageView+ImageFrame.h
Created February 18, 2013 19:27
Category to get the frame of an image that's inside a UIImageView. Since I use aspect fit on some stuff, I sometimes need to account for the top and bottom borders.
#import <UIKit/UIKit.h>
@interface UIImageView (SGExtensions)
- (CGRect)sg_imageFrame;
@end