-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Squared Edges #37
Comments
For that I would subclass For Flowies I have an - (void)setup {
[super setup];
// text style
self.font = [UIFont fontWithName:@"HelveticaNeue-Bold" size:18];
self.textColor = UIColor.whiteColor;
// etched borders
self.borderStyle = MGBorderEtchedTop | MGBorderEtchedBottom;
// padding
self.leftPadding = 16;
self.rightPadding = 16;
} And a convenience + (id)line {
return [self boxWithSize:(CGSize){320, 60}];
} Then I would make the table something like this: MGBox *table = MGBox.box;
[self.scroller.boxes addObject:table];
StyledLine *line1 = StyledLine.line;
line1.leftItems = (id)@"Some text on the left";
[table.boxes addObject:line1];
StyledLine *line2 = StyledLine.line;
line2.leftItems = (id)@"Some text on the left";
[table.boxes addObject:line2];
[self.scroller layoutWithSpeed:0.3 completion:nil]; |
Thanks that very helpful. |
You're adding |
Thanks. How can I make my list scroll horizontally? |
There's currently no horizontal layout strategy, unless you use a grid layout and resize the container's width to accommodate. Perhaps that would work for you? |
How can I implement squared edges like in the Flowies screenshot?
Thanks!
The text was updated successfully, but these errors were encountered: