I have two UICollectionView
objects, both have separate sources and representations. I use the "Photo app" I want to use the transition to get ', I want to use the layout toll latvel Translation.
This does not work though. When I call the UseLayoutToLayoutNavigationTransitions
I change this layout, but the content is not
First Image First Collection View A series of categories and people in them.
The second picture is that I would like to end the animation. A series of people within a certain category.
That's just what happens now to rearrange the categories simply
< Img src = "https :. // i.stack.imgur.com/vdcK2.jpg "alt =" Do I want the animation to end with ">
at a glance
isUICollectionViewController transition between example
section.
in this original shows you that you change the data source and the navigation controller By implementing it, it has to be representative of itself that representative and Respect:
- (minus) navigationController: (UINavigationController *) navigationController didShowViewController: (UIViewController *) ViewController animated: (bool) animated {if ([ViewController isKindOfClass: [FJDetailViewController class]]) { FJDetailViewController * dvc = (FJDetailViewController *) viewController; Dvc.collectionView.dataSource = dvc; dvc.collectionView.delegate = dvc; [Dvc.collectionView scrollToItemAtIndexPath: [NSIndexPath indexPathForItem: _selectedItem insection: 0] atScrollPosition: UICollectionViewScrollPositionCenteredVertically Animated: NO]; } And if (viewController == self) {self.collectionView.dataSource = self; Self.collectionView.delegate = self; }}
Comments
Post a Comment