CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Small library with a few helpers that I use daily to save up some code.
example:
instead of:
CGRect frame = view.frame;
frame.size.width -= 20;
view.frame = frame;you can write:
view.frame.width -= 20;UIImage.width and UIImage.height
UIView:
CGFloat xCGFloat yCGFloat widthCGFloat heightCGFloat boundsXCGFloat boundsYCGFloat boundsWidthCGFloat boundsHeightCGPoint originCGPoint boundsOriginCGSize sizeCGSize boundsSizeUIButton
UIImage *imageUIImage *backgroundImageUIImage *selectedImageUIImage *selectedBackgroundImageNSString *titleNSString *selectedTitleBOOL IsRetinaScreen();
BOOL IsRetina4Screen();
CGFloat iOSVersion();
BOOL iOSVersionIsAtLeast(CGFloat version);
BOOL iOSVersionIsAtMost(CGFloat version);
BOOL iOSVersionIsGreatherThan(CGFloat version);
BOOL iOSVersionIsLessThan(CGFloat version);Notification helpers (I tried to make notifications as easy and flexible as possible, so there are a lot of optional parameters)
On(NSString *event[, id object], NotificationBlock block);
On(NSString *event[, id object], id target, NSString *selectorName);Off(NSString *event[, NotificationBlock block]);
Off(NSString *event[, id target, NSString *selectorName]);Trigger([id sender,] NSString *event [, NSDictionary *userInfo]);On method could be originally written as:[[NSNotificationCenter defaultCenter] addObserver:target
selector:NSSelectorFromString(selectorName)
name:event
object:object];Alternatively you may substitute the target and selector for a block...