iphone - Rotating UIViewController Problem -


i have following code display uiviewcontroller in horizontal orientation ontop of uitableviewcontroller.

  -(void)willanimaterotationtointerfaceorientation:(uiinterfaceorientation)tointerfaceorientation duration:(nstimeinterval)duration {      if (tointerfaceorientation == uiinterfaceorientationlandscapeleft ||         tointerfaceorientation == uiinterfaceorientationlandscaperight) {         [self.view addsubview:landscapechartviewcontroller.view];     }      if (tointerfaceorientation == uiinterfaceorientationportrait ||         tointerfaceorientation == uiinterfaceorientationportraitupsidedown) {         if(landscapechartviewcontroller != nil)             [landscapechartviewcontroller.view removefromsuperview];     } } 

when phone rotates, view doesn't take entire screen.

the user able scroll, showing rest of uitableviewcontroller. don't want uitableviewcontroller there in horizontal orientation.

try [self.view addsubview:landscapechartviewcontroller.view];

assuming you've set frames correctly, should you're looking for.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -