FrameAccessor

MIT License
Objective-C
iOS

Powered by Appetize.io.

1 image

Author

Description

Easy way to access view's frame in iOS and OS X.

Use:

view.x = 15;
view.width = 167;

instead of

CGRect newFrame = view.frame;
newFrame.origin.x = 15;
newFrame.size.width = 167;
view.frame = newFrame;

You can access x, y, width, height, origin or size like properties.

Tags