iphone - Navigation-based app with TabBar -


i'm using navigation-based application template core data. please tell me how , tabbar on bottom of view. using uitableview, if add uitabbar subview, tabbar moving along tableview when scrolling. switch between views tabbar, first "segment" of tabbar should open rootview (navigationbar tableview),and second other view.

now did this:

uitabbarcontroller *tabbarcontroller = [[uitabbarcontroller alloc] init]; tabbarcontroller.viewcontroller = [nsarray arraywithobject:yournavigationcontroller]; self.window.rootviewcontroller = tabbarcontroller [tabbarcontroller release]; 

that works fine, how can add more items uitabbar , each item other view? tabbar has 1 item on rootview loaded thanks!

use uitabbarcontroller root view controller in application delegate:

uitabbarcontroller *tabbarcontroller = [[uitabbarcontroller alloc] init]; tabbarcontroller.viewcontroller = [nsarray arraywithobject:yournavigationcontroller]; self.window.rootviewcontroller = tabbarcontroller [tabbarcontroller release]; 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -