You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a MGTableStyledBox and want full landscape support so i use this code
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)orient
duration:(NSTimeInterval)duration {
BOOL portrait = UIInterfaceOrientationIsPortrait(orient);
float width = portrait ? IPHONE_PORTRAIT_WIDTH : IPHONE_LANDSCAPE_WIDTH;
[scroller setSize:(CGSize){width, self.view.frame.size.heigth}];
// apply to each line in boxes
for (MGTableStyledBox *box in scroller.boxes) {
for (MGLine *line in box.topLines) {
if(line.size.heigth == 44){
line.setSize((CGSize){width, 44});
}
}
}
// relayout the sections
[self.scroller layoutWithSpeed:duration completion:nil];
}
It works perfectly, but there are some multiLine MGLine's. They are simply ignored because their height isn't 44 sure, but how can i resize them to fit the landscape size?
Maybe you have an idea?
thanks a lot!
The text was updated successfully, but these errors were encountered:
I use a MGTableStyledBox and want full landscape support so i use this code
It works perfectly, but there are some multiLine MGLine's. They are simply ignored because their height isn't 44 sure, but how can i resize them to fit the landscape size?
Maybe you have an idea?
thanks a lot!
The text was updated successfully, but these errors were encountered: