Sometimes it's hard to place UIView
s through code. So here comes this library.
The library contributes to laying out elements on a UIScrollView
with a single method.
Issues are welcomed
Let's check how to use:
self.layoutView = GRVertical(self.textLabel, GRVerticalH(@"User Form", self.userName, self.password), self.submit);
self.layoutView.frame = self.view.bounds;
self.layoutView.headerContent = @"Demo page";
[self.view addSubview:self.layoutView];
To run the example project, clone the repo, and run pod install
from the Example directory first.
GRLayoutView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GRLayoutView"
GRLayoutView is available under the MIT license. See the LICENSE file for more info.