iphone - IOS: How to change the position of UITabbar to the top of view -
i using uitabbar
in project want change position bottom top of view. code have put this.
{ [super viewdidload]; // additional setup after loading view. self.view.backgroundcolor = [uicolor whitecolor]; self.title = @"welcome"; _friendviewcontroller = [friendsviewcontroller new]; _homeviewcontroller = [homepageviewcontroller new]; _notifviewcontroller = [notificationviewcontroller new]; _messageviewcontroller = [messagesviewcontroller new]; self.tabbarcontroller = [[uitabbarcontroller alloc]init]; self.viewcontrollers = [nsarray arraywithobjects:_homeviewcontroller,_messageviewcontroller,_friendviewcontroller,_notifviewcontroller, nil]; //uitabbar *tabbar = self.tabbarcontroller.tabbar; uitabbaritem *item0 = [self.tabbar.items objectatindex:0]; uitabbaritem *item1 = [self.tabbar.items objectatindex:1]; uitabbaritem *item2 = [self.tabbar.items objectatindex:2]; uitabbaritem *item3 = [self.tabbar.items objectatindex:3]; }
uitabbarcontroller *tabbarcontroller; tabbarcontroller = [[uitabbarcontroller alloc]init]; // define custom frame size entire tab bar controller in // top of screen. cgrect tabbarframe; tabbarframe = cgrectmake(0, 0, 320, 200); tabbarcontroller.view.frame = tabbarframe;
Comments
Post a Comment