TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Jorge Maroto.
UIView category to help the handling of view frames.
Inside a UIViewController:
self.view.x = 5
Instead of UIKit way:
self.view.frame = CGRectMake(5, self.frame.origin.y, self.frame.size.width, self.frame.size.height);
-(CGSize)size;
-(CGPoint)origin;
-(CGFloat)x;
-(CGFloat)y;
-(CGFloat)width;
-(CGFloat)height;
-(void)setX:(CGFloat)newX;
-(void)setY:(CGFloat)newY;
-(void)setWidth:(CGFloat)newWidth;
-(void)setHeight:(CGFloat)newHeight;
JMFrame is available under the MIT license. See the LICENSE file for more info.