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

Make it as a Generic way to Navigate any View controller

$
0
0
    public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
    {
        tableView.DeselectRow(indexPath, false);
        var country = TableItems[indexPath.Row];
        var controller = _navController.TopViewController as GenerateOTPViewController;
        if (controller != null)
        {
            controller.GetCountry(country.CountryName, country.CountryFlag);
            _navController.DismissModalViewController(true);
        }
    }

Hello
How to use instead of GenerateOTPViewController generic way to navigate any viewcontroller using T operator.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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