Skip to content

gustavoggs/OBJC-Categories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OBJC-Categories

Objective-c categories that I found useful.


NSDateFormatter

NSDateFormatter+formatter.h

+ (NSDateFormatter*) formatter:(NSString*)dateFormat fixedLocale:(BOOL)isFixedLocale useUserTimeZone:(BOOL)isUserTimeZone;

UIScrollView

UIScrollView+pages.h

- (CGFloat) pagesVertical;
- (CGFloat) pagesHorizontal;
- (CGFloat) currentPageVertical;
- (CGFloat) currentPageHorizontal;

UIView

UIView+frameChanges.h

- (void) frameAddX:(CGFloat)x;
- (void) frameAddY:(CGFloat)y;
- (void) frameAddWidth:(CGFloat)width;
- (void) frameAddHeight:(CGFloat)height;
- (void) frameSetX:(CGFloat)x;
- (void) frameSetY:(CGFloat)y;
- (void) frameSetWidth:(CGFloat)width;
- (void) frameSetHeight:(CGFloat)height;
- (void) frameSetOrigin:(CGPoint)origin;
- (void) frameSetSize:(CGSize)size;

UIView+frameShortcut.h

- (CGFloat) frameX;
- (CGFloat) frameY;
- (CGFloat) frameWidth;
- (CGFloat) frameHeight;
- (CGPoint) frameOrigin;
- (CGSize) frameSize;

About

Objective-c categories that I found

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published