AQGridView - orientation change in ExpanderDemo

I just started checking out AQGridView and the new one for iOS in the original ExpanderDemo example. Orientation works fine for the first view, but when I click on any cell and the next up AQGridView does not affect the view in the GridView.

ExpandingGridViewController *controller = [[ExpandingGridViewController alloc] init]; controller.gridView.frame = self.gridView.frame; [self.gridView setHidden:YES]; [self.view.superview addSubview: controller.gridView]; [controller expandCellsFromRect: expandFromRect ofView: cell]; [controller viewDidAppear: NO]; 

On the other hand, if I present the view controller as the second, it works fine with orientation, but plays the animation for extension; which I do not want to lose. What should I do?

 ExpandingGridViewController *controller = [[ExpandingGridViewController alloc] init]; [self presentViewController:controller animated:NO completion:nil]; 
+4
source share
1 answer

The last time I use AQGridView, I have a lot of problems, I suggest you try UICollectionView. Hooray!

-1
source

Source: https://habr.com/ru/post/1486603/


All Articles