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

uitabbarcontroller-not-working-properly-in-xamarin-ios-m

$
0
0

i have created uitabbarcontroller which is not properly working,my issue is if i click second tab bar the corresponding view is not visible only the first view is visible for all actions.i couldn't navigate and see the next views.

my code is :

  if (this.tabBarController == null) 


      { 
   

    this.tabBarController = new UITabBarController ();

    

        }  

      var viewController1=new Filterview();
  

      var viewController2=new SearchView();

      tabBarController = new UITabBarController ();
    

  tabBarController.ViewControllers = new UIViewController []

         {

                    

           viewController1,


        viewController2,

  

          } ;



     viewController2.TabBarItem = new UITabBarItem (UITabBarSystemItem.Search, 1);



     viewController1.TabBarItem = new UITabBarItem ("Filter", UIImage.FromFile ("Images/1382614124_filter.png"), 0);

      this.NavigationController.PushViewController (this.tabBarController, true);

this code is not working pl anybody suggest me how to create uitabbar in iOS xamarin mono touch applications.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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