Latest 0.1.2
Homepage https://github.com/patoroco/UIView-JMFrame
License MIT
Platforms ios 2.0
Frameworks UIKit
Authors

UIView+JMFrame Pod version Build Status

UIView category to help the handling of view frames.

Install

You can drop files on UIView+JMFrame or if you appreciate your time, add pod to your Podfile :)

pod 'UIView+JMFrame'

Example usage

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);

Available methods

-(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;

License

JMFrame is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "UIView+JMFrame",
    "version": "0.1.2",
    "summary": "UIView category to help the handling of view frames.",
    "homepage": "https://github.com/patoroco/UIView-JMFrame",
    "license": "MIT",
    "authors": {
        "Jorge Maroto Garcia": "[email protected]"
    },
    "source": {
        "git": "https://github.com/patoroco/UIView-JMFrame.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "2.0"
    },
    "source_files": "UIView+JMFrame",
    "frameworks": "UIKit",
    "requires_arc": false
}

Pin It on Pinterest

Share This