[MonoTouch] Multi-lingual

Göran Halvarsson goranhalvarsson at gmail.com
Fri Oct 7 09:54:59 EDT 2011


Hello again.

I forgot to add the reload/reset method in the ReloadView method.

((TabBarController)_tabbarController).ResetTabs();	
What it does? It recreates the tabs and its content.

Like this:
private void ReloadView()
{
       InvokeOnMainThread(delegate {

               //Flip the view
               UIView.BeginAnimations("Flipper");
               UIView.SetAnimationDuration(1.25);
               UIView.SetAnimationCurve(UIViewAnimationCurve.EaseInOut);
               UIView.SetAnimationTransition
(UIViewAnimationTransition.FlipFromRight, _tabbarController.View ,
true);
               _tabbarController.ViewWillDisappear(true);
               _tabbarController.ViewWillAppear(true);
               UIView.CommitAnimations();
             ((TabBarController)_tabbarController).ResetTabs();

       });
}

br
Göran


More information about the MonoTouch mailing list