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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

java - Why is BlockingQueue.take() not releasing the thread? -

jQuery Ajax Render Fragments OR Whole Page -