ios - UITabBar over UIViewController -


i have uitabbarcontroller 2 uiviewcontroller inside. how initilaiser uiviewcontroller not display portion below uitabbar ?

edit:

appdelegate.m:

viewcontroller *viewcontroller = [[viewcontroller alloc] init]; self.tabcontroller = [[uitabbarcontroller alloc] init]; [self.tabcontroller setviewcontrollers:@[viewcontroller] animated:yes]; self.window.rootviewcontroller = self.tabcontroller; 

viewcontroller.m:

- (void)viewdidload {     [super viewdidload];     [self.view addsubview: [[mygraphicview alloc] initwithframe:[self.view bounds]]]; } 

how initilaiser uiviewcontroller not display portion below uitabbar ?

i think you're mistaking gloss effect translucency that's allowing table show through tab bar. here's image showing 2 tabs:

tab bar

it look content view showing through under tab bar, it's not showing through -- you're seeing glossy effect used draw tab items. illustrate, i'll change background color of content purple:

purple content

if content showing through tab bar, you'd see purple showing instead of white/gray can see there. see in own app, scroll table bit. if table showing through tab bar, able read content of next cell, including "9" , separator line. i'm sure won't see that, though.


Comments