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
Post a Comment