It might be a bit of a cop-out, but have you thought about redesigning it? iOS has tabs at the bottom. Android has it at the top. I think its for a reason.
Or, you could use a UISegmentedControl not the tabbar.... not the same look, but might work for you. On Thu, Nov 15, 2012 at 11:14 AM, Iki <[email protected]> wrote: > Hi Nic, > > that was also my conclusion, but i don't know how to do it. From TabBar ctor > i tried: > > //this.View.Bounds = new System.Drawing.RectangleF(0,0,300,300); > //this.TabBarController.View.Frame = new > System.Drawing.RectangleF(0,0,300,300); > //this.TabBarController.View.Bounds = new RectangleF(10,10,400,400); > > But none of the above works, i also try to set View.Frame from AppDelagate > just after creating TabBar, but no luck with that either. > > > On Nov 14, 2012, at 4:54 PM, Nic Wise <[email protected]> wrote: > > You might have to change the size of the TabBarController view - it'll > think there is a set of tabs down there, which there isn't.... 'cos > you moved it. > > this.View.Frame = .... (or is it bounds?) > > > > On Wed, Nov 14, 2012 at 10:15 AM, Iki <[email protected]> wrote: > > I try to reset the bounds of the view, but no luck. Also i tried to resize > UIViewControllers that are inside TabBarController, but it seems to me that > i need to resize the TabBarController View. > > This is what i have tried: > > //this.TabBarController.View.Frame = new > System.Drawing.RectangleF(0,0,UIScreen.MainScreen.Bounds.Width,UIScreen.MainScreen.Bounds.Height); > //this.View.Bounds = UIScreen.MainScreen.Bounds; > //this.View.Frame = new System.Drawing.RectangleF(0,0,300,300); //just to > see if i can affect the view bounds in any way > > > Im out of the ideas on how to solve this. > > > > On Nov 14, 2012, at 2:26 AM, Robert Reck <[email protected]> wrote: > > 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 > > > > > -- > Nic Wise > t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise > b. http://www.fastchicken.co.nz/ > > mobileAgent (for FreeAgent): get your accounts in your pocket. > http://goo.gl/IuBU > Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa > Earnest: Self-employed? Track your business expenses and income. > http://earnestapp.com > Nearest Bus: find when the next bus is coming to your stop. > http://goo.gl/Vcz1p > London Bike App: Find the nearest Boris Bike, and get riding! > http://goo.gl/Icp2 > > -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
