iPhone, How do I force one view into landscape mode? -
how force 1 view landscape mode graph.
i want click tab bar button make graph view appear when button clicked on view want push child screen need in portrait mode.
once click want return graph view in landscape.
use uiview's transform property rotate pi radians:
-(void)viewwillappear:(bool)animated { cgaffinetransform newtransform = cgaffinetransformmake(0.0,1.0,-1.0,0.0,0.0,0.0); self.view.transform = newtransform; }
Comments
Post a Comment