iphone - How to place tab bar on top of the view -


i'm developing iphone app want place tab bar on top.

here code

tabbarcontroller = [[uitabbarcontroller alloc]init];     tabbarcontroller.view.frame= cgrectmake(0, 0, 320, 40);     nsarray *arr = [[nsarray alloc]initwithobjects:[[demoview alloc] init], [[demoview alloc] init], nil];     tabbarcontroller.viewcontrollers = arr;      [tabbarcontroller.view setbackgroundcolor:[uicolor whitecolor]];      [self.view addsubview:tabbarcontroller.tabbar]; 

but cant see tab bar. don't problem is.

thanks

you dont have take view add tabbar. can directly add window


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -