Resize AQGridView iPad Orientation Cell

So, I hit my head against the wall, trying to figure it out. Here is what I need mainly:

I have an AQGridView that is used to display images (UIImageView) in portrait or landscape orientation. If the orientation is a portrait, then the image just occupies the entire screen (768x1024), and this part works just fine. However, in the landscape, I need 2 images to be side by side (512x768). Now, when the orientation changes from portrait to landscape, of course, 2 cells are displayed instead of one, which is nice, but I canโ€™t imagine the correct image exactly next to the right side of the left image. I tried a few things, I suspect: - (CGRect) gridView: (AQGridView *) gridView adjustCellFrame: (CGRect) cellFrame insideGridCellFrame: (CGRect) gridCellFrame

will be my savior here, but I just can't get it to work correctly. Any ideas? Anyone who has had and solved a similar problem? Any help is appreciated in advance!

+3
source share
1 answer
        [gView setResizesCellWidthToFit:YES];
        [gView setSeparatorStyle:AQGridViewCellSeparatorStyleNone];
+1
source

All Articles