Ivan, Do you have to reset the bounds of the view to compensate for the tab bar's 48 pixels being moved to the top?
Bob -- Bob Reck <[email protected]<mailto:[email protected]>> PII Quality Assurance Auditor Senior Applications Developer ___________________ www.keylogic.com<http://www.keylogic.com/> 443.539.9065 301.621.8920 (fax) The information contained in this message may be privileged, private and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message. On Nov 13, 2012, at 6:15 PM, "Iki" <[email protected]<mailto:[email protected]>> wrote: 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<http://www.holisticware.com> _______________________________________________ MonoTouch mailing list [email protected]<mailto:[email protected]> http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
