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

javascript - Iterate over array and calculate average values of array-parts -

php - Time zone issue -

iphone - Using nested NSDictionary with Picker -