Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Unwind from CollectionViewController/TablewViewController source class

$
0
0

Hello,
I have created source class (UICollectionViewSource) which I am using for CollectionViewController. I would like to call unwind action, whenever the image is selected.

In my CollectionViewCell class, I have itemSelected method:

    public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
    {
        imageObject.Image = imageList[indexPath.Row];
        //NavigationController.PopViewController(true);
    }

In this method, I would need to return back to previous viewController. Unfortunately NavigationController.PopViewController(true); does not work here, as NavigationController does not exists in source class.

Is there any method which would call my NavigationController? Here I am using CollectionViewController, but I believe the same applies for TableViewController.

Thanks


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>