Hi I'm currently having problems with placing TabBar on top of the screen (default is bottom).
I followed this MonoTouch sample: http://docs.xamarin.com/iOS/Recipes/Content_Controls/Tab_Bar/Create_a_Tab_Bar so i have this: using System; using MonoTouch.UIKit; namespace TabBar { public class TabBarController : UITabBarController { UIViewController tab1, tab2, tab3; public TabBarController () { //this line is added by me to move the TabBar to the top of the screen this.TabBar.Frame = new System.Drawing.RectangleF(0,0,this.View.Bounds.Width,48); tab1 = new UIViewController(); tab1.Title = "Green"; tab1.View.BackgroundColor = UIColor.Green; tab2 = new UIViewController(); tab2.Title = "Orange"; tab2.View.BackgroundColor = UIColor.Orange; tab3 = new UIViewController(); tab3.Title = "Red"; tab3.View.BackgroundColor = UIColor.Red; var tabs = new UIViewController[] { tab1, tab2, tab3 } ; ViewControllers = tabs; SelectedViewController = tab2; } } } After that, TabBar will be on top, but on the bottom of the screen(View) there is a black gap (from previous position). How can i fix this? And what would be appropriate way for me to achieve this? Thanks for any help! Ivan www.holisticware.com
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
