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;  } 

http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html%23//apple_ref/doc/uid/tp40006816-ch3-sw4


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -