Let's make it easier to create an Auto Layout-ed UIView
Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
UIView+jr_viewInSuperview.h
UIView+jr_viewInSuperview.m

README.md

UIView+jr_viewInSuperview

Streamlines UIView creation for this brave Auto Layout era.

Lets you write:

UIView *view = [UIView jr_viewInSuperview:containerView];

Instead of having to write:

UIView *view = [[UIView alloc] initWithFrame:CGRectZero];
view.translatesAutoresizingMaskIntoConstraints = NO;
[containerView addSubview:view];